home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Demos / ByCompany / Athena_Design / Mesa / Mesa.app / English.lproj / PasteFormula.nib / data.nib (.txt) < prev   
NeXT TypedStream Data  |  1994-03-01  |  91KB  |  2,136 lines

  1. typedstream
  2. IBObjectData
  3. Object
  4. CustomObject
  5. PasteFormula
  6.     Responder
  7. ScrollView
  8. ClipView
  9. ciifffcfffs
  10. [118c]{\rtf0\ansi{\fonttbl\f1\fmodern Courier;}
  11. \margl40
  12. \margr40
  13. \f1\b0\i0\ulnone\ql\fs24\fi0\li0\gray0\fc0\cf0\up0\dn0 
  14. NXCursor
  15. NXImage
  16. NXibeam
  17. Scroller
  18. Control
  19. _doScroller:
  20. @@@ffs
  21.     NXBrowser
  22. @@::#@ssssi**
  23. Matrix
  24. NXBrowserCell
  25. BrowserItem
  26.     Helvetica
  27. Button
  28. ButtonCell
  29. ActionCell
  30. Paste
  31. MenuTemplate
  32. *@*@ccc
  33. OtherViews
  34. @:@iiii
  35. [15@]
  36. MenuCell
  37. @Math
  38.     Financial
  39. @Financial
  40. String
  41. @String
  42.     Constants
  43. @Constants
  44. Special
  45. @Special
  46. @Date
  47. Database
  48.     @Database
  49.     Operators
  50. ff@@#::s
  51.     PopUpList
  52. popUp:
  53. NXpopup
  54.     Functions
  55. Helvetica-Bold
  56. edit.formulabuilder
  57. Title
  58. NXStringTable
  59.     HashTable
  60. ABS(num)
  61. AND(value[,value...])
  62. CLEAN(
  63. CLEAN(string)
  64. @IF(exp,value1[,value2])
  65. RIGHT(
  66. RIGHT(str,num)
  67. DDB(cst,slvg,life,per)
  68. @ISERR(
  69. @ISERR(exp)
  70. FORMAT(
  71. FORMAT(num, fmt-const [,prec])
  72. @DATEVALUE(
  73. @DATEVALUE(date-str)
  74. @ISFORMULA(
  75. @ISFORMULA(adr)
  76. @CTERM(
  77. @CTERM(rate,fv,pv)
  78. REPEAT(
  79. REPEAT(string,times)
  80. @ISREF(
  81. @ISREF(exp)
  82. @LOWER(
  83. @LOWER(str)
  84. @COUNT(
  85. @COUNT(num|range[,...])
  86. MINUTE(
  87. MINUTE(date)
  88. @ROUND(
  89. @ROUND(num,prec)
  90. @VALUE(
  91. @VALUE(string)
  92. DCOUNT(
  93. DCOUNT(database,offset,crit)
  94. ISTEXT(
  95. ISTEXT(exp)
  96. @DPROD(
  97. @DPROD(database,offset,crit)
  98. SECOND(
  99. SECOND(date)
  100. IFELSE(
  101. IFELSE(exp,value1,value2)
  102. @RANGE(
  103. @RANGE(ur,lc,lr,rc)
  104. @UPPER(
  105. @UPPER(str)
  106. SIGNAL(
  107. SIGNAL(cond,named_port,range)
  108. CHOOSE(
  109. CHOOSE(num,item1[,item2[,...])
  110. LENGTH(
  111. LENGTH(string)
  112. DOLLAR(
  113. DOLLAR(num[,prec])
  114. @MONTH(
  115. @MONTH(date)
  116. PV(rate,pers,pmnt[,fv[,type]])
  117. PROPER(
  118. PROPER(str)
  119. BEEPIF(
  120. BEEPIF(cond)
  121. OR(value[,value...])
  122. STDDEV(
  123. STDDEV(num|range[,...])
  124. ISERROR(
  125. ISERROR(exp)
  126. DSTDEV(
  127. DSTDEV(database,offset,crit)
  128. @HISTOGRAM(
  129. ,@HISTOGRAM(range,divisions,anchor[,min,max])
  130. @EXACT(
  131. @EXACT(str1,str2)
  132. FV(rate,pers,pmt[,pv[,type]])
  133. @NEXTMONTH(
  134. @NEXTMONTH(date)
  135. LN(num)
  136. @INDEX(
  137. @INDEX(range,col,row)
  138. @ISSTRING(
  139. @ISSTRING(exp)
  140. VLOOKUP(
  141. VLOOKUP(code,table,offset)
  142. @S(exp)
  143. @TIMEVALUE(
  144. @TIMEVALUE(time-str)
  145. IF(exp,value1[,value2])
  146. @CLEAN(
  147. @CLEAN(string)
  148. @N(exp)
  149. @RIGHT(
  150. @RIGHT(str,num)
  151. @STRING(
  152. @STRING(num,prec)
  153. ADDRESS(
  154. ADDRESS(row,col)
  155. @CONVDATE(
  156. @CONVDATE(date_number)
  157. @SETCOLOR(
  158. @SETCOLOR(value,red,green,blue)
  159. @FORMAT(
  160. @FORMAT(num, fmt-const [,prec])
  161. @@(string)
  162. DATEVALUE(
  163. DATEVALUE(date-str)
  164. ISFORMULA(
  165. ISFORMULA(adr)
  166. HLOOKUP(
  167. HLOOKUP(code,table,offset)
  168. @REPEAT(
  169. @REPEAT(string,times)
  170. ISEMPTY(
  171. ISEMPTY(adr)
  172. @MINUTE(
  173. @MINUTE(date)
  174. @NEXTYEAR(
  175. @NEXTYEAR(date_ser)
  176. @DCOUNT(
  177. @DCOUNT(database,offset,crit)
  178. ISSTEXT(
  179. ISTEXT(adr)
  180. @SECOND(
  181. @SECOND(date)
  182. @CALCRATE(
  183. %@CALCRATE(present-value,payment,term)
  184. WEEKDAY(
  185. WEEKDAY(date-ser)
  186. @SIGNAL(
  187. @SIGNAL(cond,named_port,range)
  188. @GETINPUT(
  189. @GETINPUT(cell)
  190. @CHOOSE(
  191. @CHOOSE(num,item1[,item2[,...])
  192. @LENGTH(
  193. @LENGTH(string)
  194. REPLACE(
  195. REPLACE(str,start,num,new-str)
  196. ISBLANK(
  197. ISBLANK(adr)
  198. @DEGTORAD(
  199. @DEGTORAD(num)
  200. @ISNUMBER(
  201. @ISNUMBER(exp)
  202. WORKDAY(
  203. !WORKDAY(date-ser,days[,holidays])
  204. @RADTODEG(
  205. @RADTODEG(num)
  206. @PROPER(
  207. @PROPER(str)
  208. AVERAGE(
  209. AVERAGE(num|range[,...])
  210. @BEEPIF(
  211. @BEEPIF(cond)
  212. HISTOGRAM(
  213. +HISTOGRAM(range,divisions,anchor[,min,max])
  214. DSTDDEV(
  215. DSTDDEV(database,offset,crit)
  216. NEXTMONTH(
  217. NEXTMONTH(date)
  218. ATAN2(
  219. ATAN2(x-num,y-num)
  220.     ISSTRING(
  221. ISSTRING(exp)
  222.     @VLOOKUP(
  223. @VLOOKUP(code,table,offset)
  224. T(exp)
  225. TIMEVALUE(
  226. TIMEVALUE(time-str)
  227. N(exp)
  228. ROWS(
  229. ROWS(range)
  230. SQRT(
  231.     SQRT(num)
  232. ROOT(
  233. ROOT(num,root)
  234.     @ADDRESS(
  235. @ADDRESS(row,col)
  236.     CONVDATE(
  237. CONVDATE(date_number)
  238.     SETCOLOR(
  239. SETCOLOR(value,red,green,blue)
  240. TRIM(
  241. TRIM(string)
  242. REPT(
  243. REPT(string,times)
  244. DSUM(
  245. DSUM(database,offset,crit)
  246.     @HLOOKUP(
  247. @HLOOKUP(code,table,offset)
  248.     INDIRECT(
  249. INDIRECT(ref)
  250.     @ISEMPTY(
  251. @ISEMPTY(adr)
  252.     NEXTYEAR(
  253. NEXTYEAR(date_ser)
  254. @SUM(
  255. @SUM(num|range[,...])
  256. PROD(
  257. PROD(num|range[,...])
  258. @NPV(
  259. @NPV(rate,num|range[,...])
  260. @SETALTCOLOR(
  261. "@SETALTCOLOR(value,red,green,blue)
  262. LOG10(
  263. LOG10(num)
  264. @NOT(
  265.     @NOT(num)
  266. @PMT(
  267. @PMT(prin,int,term)
  268. COLS(
  269. COLS(range)
  270. SIGN(
  271.     SIGN(num)
  272. DAYS(
  273. DAYS(date-str | num)
  274. @SYD(
  275. @SYD(cst,slvg,life,per)
  276. NEXT(
  277. NEXT(value[,inc])
  278. @CELLPOINTER(
  279. @CELLPOINTER(atrb)
  280. TIME(
  281. TIME(hr,min,sec)
  282. HOUR(
  283. HOUR(date)
  284.     CALCRATE(
  285. $CALCRATE(present-value,payment,term)
  286. @EXP(
  287.     @EXP(num)
  288. @IRR(
  289. @IRR(guess,num|range[,...])
  290. @SLN(
  291. @SLN(cst,slvg,life)
  292. DVAR(
  293. DVAR(database,offset,crit)
  294. @NETWORKDAYS(
  295. $@NETWORKDAYS(date1,date2[,holidays])
  296.     @WEEKDAY(
  297. @WEEKDAY(date-ser)
  298. @INT(
  299.     @INT(num)
  300. ASIN(
  301.     ASIN(num)
  302. @STD(
  303. @STD(num|range[,...])
  304.     GETINPUT(
  305. GETINPUT(cell)
  306. DMAX(
  307. DMAX(database,offset,crit)
  308. @SIN(
  309.     @SIN(num)
  310. @VAR(
  311. @VAR(num|range[,...])
  312.     @REPLACE(
  313. @REPLACE(str,start,num,new-str)
  314. @SGN(
  315.     @SGN(num)
  316. DMIN(
  317. DMIN(database,offset,crit)
  318.     DEGTORAD(
  319. DEGTORAD(num)
  320. SAME(
  321.     SAME(adr)
  322. @MAX(
  323. @MAX(num|range[,...])
  324. ACOS(
  325.     ACOS(num)
  326.     ISNUMBER(
  327. ISNUMBER(exp)
  328.     DAVERAGE(
  329. DAVERAGE(database,offset,crit)
  330.     @WORKDAY(
  331. "@WORKDAY(date-ser,days[,holidays])
  332. @COS(
  333.     @COS(num)
  334.     RADTODEG(
  335. RADTODEG(num)
  336. @MIN(
  337. @MIN(num|range[,...])
  338. ATAN(
  339.     ATAN(num)
  340. @TAN(
  341.     @TAN(num)
  342. @SETBKGCOLOR(
  343. "@SETBKGCOLOR(value,red,green,blue)
  344. @DIV(
  345. @DIV(num,div)
  346. @LOG(
  347.     @LOG(num)
  348. FIND(
  349. FIND(sub-str,str,start)
  350. YEAR(
  351. YEAR(date)
  352. DAVE(
  353. DAVE(database,offset,crit)
  354. @MOD(
  355. @MOD(num,div)
  356. CELL(
  357. CELL(atrb,adr)
  358. @LEN(
  359. @LEN(string)
  360. DATE(
  361. DATE(yr,mon,day)
  362. @DAY(
  363. @DAY(date)
  364. CHAR(
  365.     CHAR(num)
  366. @AVG(
  367. @AVG(num|range[,...])
  368. @AVE(
  369. @AVE(num|range[,...])
  370. FRAC(
  371.     FRAC(num)
  372. ISNA(
  373.     ISNA(exp)
  374. CODE(
  375. CODE(string)
  376. LEFT(
  377. LEFT(str,num)
  378. @MID(
  379. @MID(str,start,len)
  380. @ATAN2(
  381. @ATAN2(y-num,x-num)
  382. @ABS(
  383.     @ABS(num)
  384. @ROWS(
  385. @ROWS(range)
  386. @SQRT(
  387. @SQRT(num)
  388. @DDB(
  389. @DDB(cst,slvg,life,per)
  390. ISERR(
  391. ISERR(exp)
  392. @ROOT(
  393. @ROOT(num,root)
  394. @TRIM(
  395. @TRIM(string)
  396. ISREF(
  397. ISREF(exp)
  398. LOWER(
  399. LOWER(str)
  400. COUNT(
  401. COUNT(num|range[,...])
  402. @DSUM(
  403. @DSUM(database,offset,crit)
  404. ROUND(
  405. ROUND(num,prec)
  406. @TERM(
  407. @TERM(pmt,rate,fv)
  408. SUM(num|range[,...])
  409. VALUE(
  410. VALUE(string)
  411. @PROD(
  412. @PROD(num|range[,...])
  413. NPV(rate,pmt1[,pmt2[,...]])
  414. SETALTCOLOR(
  415. !SETALTCOLOR(value,red,green,blue)
  416. @SIGN(
  417. @SIGN(num)
  418. @COLS(
  419. @COLS(range)
  420. NOT(num)
  421. PMT(rate,pers,pv[,fv[,type]])
  422. DPROD(
  423. DPROD(database,offset,crit)
  424. SYD(cst,slvg,life,per)
  425. CELLPOINTER(
  426. CELLPOINTER(atrb)
  427. @TIME(
  428. @TIME(hr,min,sec)
  429. @NEXT(
  430. @NEXT(value[,inc])
  431. @DSTD(
  432. @DSTD(database,offset,crit)
  433. @HOUR(
  434. @HOUR(date)
  435. EXP(num)
  436. SLN(cst,slvg,life)
  437. IRR(guess,num|range[,...])
  438. @DVAR(
  439. @DVAR(database,offset,crit)
  440. NETWORKDAYS(
  441. #NETWORKDAYS(date1,date2[,holidays])
  442. RANGE(
  443. RANGE(ur,lc,lr,rc)
  444. UPPER(
  445. UPPER(str)
  446. @RATE(
  447. @RATE(fv,pv,per)
  448. @ASIN(
  449. @ASIN(num)
  450. INT(num)
  451. SIN(num)
  452. @DMAX(
  453. @DMAX(database,offset,crit)
  454. VAR(num|range[,...])
  455. SGN(num)
  456. @DMIN(
  457. @DMIN(database,offset,crit)
  458. MAX(num|range[,...])
  459. @ACOS(
  460. @ACOS(num)
  461. @SAME(
  462. @SAME(adr)
  463. MONTH(
  464. MONTH(date)
  465. @PV(pmt,rate,per)
  466. COS(num)
  467. MIN(num|range[,...])
  468. @ATAN(
  469. @ATAN(num)
  470. TAN(num)
  471. SETBKGCOLOR(
  472. !SETBKGCOLOR(value,red,green,blue)
  473. DIV(num,div)
  474. LOG(num)
  475. STDEV(
  476. STDEV(num|range[,...])
  477. @DAVG(
  478. @DAVG(database,offset,crit)
  479. @FIND(
  480. @FIND(sub-str,str,start)
  481. @YEAR(
  482. @YEAR(date)
  483. @CELL(
  484. @CELL(atrb,adr)
  485. MOD(num,div)
  486. @DAVE(
  487. @DAVE(database,offset,crit)
  488. LEN(string)
  489.     DAY(date)
  490. @CHAR(
  491. @CHAR(num)
  492. @DATE(
  493. @DATE(yr,mon,day)
  494. EXACT(
  495. EXACT(str1,str2)
  496. AVE(num|range[,...])
  497. @FRAC(
  498. @FRAC(num)
  499. @FV(pmt,rate,per)
  500. @CODE(
  501. @CODE(string)
  502. @LEFT(
  503. @LEFT(str,num)
  504. @ISNA(
  505. @ISNA(exp)
  506. @LN(num)
  507. MID(str,start,len)
  508. FIXED(
  509. FIXED(num,prec)
  510. INDEX(
  511. INDEX(range,row,col)
  512. WindowTemplate
  513. iiii***@s@
  514. Formula Builder
  515. DPPanel
  516. @ISERR
  517. Returns 1 if exp returns an error other than @NA. Returns 0 otherwise.
  518. @ISERR(@ERR) -> 1 (true)
  519. @ISERR(@VALUE("ABCD") -> 1 (true) : This formula tried to convert "ABCD" to a value using @VALUE().  This returns !ERR, which causes @ISERR() to return 1.
  520. Returns the day of the month for a date serial number.
  521. A3: 18-Jul-92
  522. =DAY(A3) -> 18
  523. =DAY(NOW)  :  This formula will return the current day of the month.
  524. LENGTH
  525. Returns the number of characters in the string.
  526. LENGTH (``10% discount on COD'') = 19
  527. A1= ``A short string '', B1=``sentence''
  528.     LENGTH(A1) = 14
  529.     LENGTH(A1&B1) = 22
  530. @COUNT
  531. Counts the number of numeric or string entries. Cells or items containing strings are counted. Cells or items containing blanks are not counted.
  532.          A       B
  533. 1      Duck      10
  534. 2      Soup      20
  535. 3         1.86   20
  536. 4         $300   10
  537. 5      '======   30
  538. 6                50
  539. 7           40   70
  540. @COUNT(A1:A7) = 6: There are only six items in column A because cell A6 is blank.
  541. @COUNT(A1:A7,B1:B7) = 13: This counts the 6 items in column A and adds the 7 items in column B.
  542. @COUNT("Good","Bad","Indifferent") = 3
  543. Note: This function differs from COUNT(num|range[,...]). @COUNT() counts string entries. COUNT() ignores string entries and returns the count of cells that contain numeric values.
  544. wReturns the Absolute Value of the number.
  545.     ABS(-45.3) = 45.3
  546.     ABS(COS(PI)) = 1
  547.     ABS(34) = 34
  548.     ABS(``Absolutely!'') = 0
  549. DCOUNT
  550. Counts all the numeric items matching criteria in the column offset from the upper left corner of the database range.
  551. This is a sample database:
  552.        A      B     C       D
  553. 1    NAME   GRADE  GPA    GRADE
  554. 2    Joe    B       3.2   B
  555. 3    Sue    A       4.7
  556. 4    Robert C       2.7
  557. 5    Steve  A       4.5
  558. 6    Ann    B       4.2
  559. The database range is A1:C6.  The criteria range is D1:D2.
  560. To count the number of students  who earned B's use this formula:
  561. =DCOUNT(A1:C6,1,D1:D2) -> 2
  562. @DIDCHANGE
  563. .Returns a 1 if the sheet has changed since the last time it was saved, and a 0 if nothing has changed.  Since the act of adding this function changes the sheet, it will only show as true except when the sheet  has been recalculated right after it has been saved. This can be useful in MScript scripts.
  564. @NEXTMONTH
  565. Returns a date serial number one calendar month after date. If the day of the month is greater than 28, it is set to 28.
  566. A3: 27-Jul-92
  567. @NEXTMONTH(A3) -> 8274 : This is the date-number for 
  568. 27-Aug-92.
  569. @NEXTMONTH(11381) = 11409 : This is the date-number for 28-Mar-2001.
  570. USERNAME
  571. Returns the user's login name.
  572. PATHNAME
  573. Returns the current path name.
  574. INDIRECT
  575. Evaluates string as a cell address and returns that address.
  576. A3: Cheers
  577. B3: A3
  578. INDIRECT(B3) -> Cheers
  579. A1: 10
  580. A2: 20
  581. A3: 30
  582. B1: A1:A3
  583. @SUM(INDIRECT (B1)) -> 60
  584. @BEEPIF
  585. Beeps if the condition is true and returns 1, 0 if false.
  586. C7: 100
  587. @BEEPIF(C7<200) : This formula will beep one time.
  588. @BEEPIF(@rand>0.5) : This formula will generate a random number between 0 and 1.  If the number is > 0.5, the it beeps and returns 1.  Otherwise it returns 0.
  589. @DAYMONFORMAT
  590. cconstant is used to specify date day-month format.
  591. @FORMAT(9876.54321, @DAYMONTHFORMAT) -> 15-Jan
  592. Returns the number of rows in a range.
  593. =ROWS(A1:H20) -> 20
  594. If RANGE1 is the name assigned to the range B1:CC200, =ROWS(RANGE1) -> 200
  595. @SETALTCOLOR
  596. Sets the alternate color of the current cell and returns value. Red, Green, and Blue are numbers between 0 and 1 that set the percentage of red, green, and blue that will be mixed together to create the color. White is all ones and black is all zeros. If any of the color components are out of bounds or result in errors, the color is not changed.
  597. @SETALTCOLOR(A1,@IF(A1 < -100,1,0),0,0) : This formula sets the alternate color to red if the number is less than -100, otherwise sets the alternate color to black.
  598. CONVDATE
  599. Converts a number in the format YYMMDD to a date serial number. Dates after the year 2000 can be specified by placing a 1 before the year.
  600. =CONVDATE(930210) -> 8441 : This is the date-number of 10-Feb-93
  601. =CONVDATE(1100410) -> 14709 : This returns the date number of 10-Apr-2010.
  602. PERCENTFORMAT
  603. aThis constant is used to specify the percent format.
  604. =FORMAT(0.09389, PERCENTFORMAT, 2) -> 9.39%
  605. @COLS
  606. Returns the number of columns in a range.
  607. @COLS(A1:H20) -> 8
  608. If RANGE1 is the name assigned to the range B1:CC200, @COLS(RANGE1) -> 80
  609. DKGRAYCOLOR
  610. [A constant referring to Dark GRAY for use in functions that change color (e.g. SETCOLOR())
  611. DINTL1FORMAT
  612. yThis constant is used to specify the numeric date month-day-year format.
  613. =FORMAT(9876.54321, DINTL1FORMAT)  -> 01/15/97
  614. @CURRENCYFORMAT
  615. bThis constant is used to specify the currency format.
  616. @FORMAT(555.9, @CURRENCYFORMAT) -> $555.90
  617. FIXEDFORMAT
  618. bThis constant is used to specify the fixed decimal format.
  619. =FORMAT(42.692, FIXEDFORMAT) -> 42.69
  620. @RATE
  621. Returns the interest rate for an investment of pv to achieve a value of fv in per periods.
  622. How much interest would an a bank account need to earn for an investment of $67,000 to grow to $100,000 in 5 years or less?
  623. @RATE(100000,67000,5) -> 8.34% or more.
  624. Returns the fractional component of num.
  625. =FRAC(NOW)  :  This formula returns only the time component of the current date.
  626. =FRAC(3.14159) -> 0.14159
  627. (Returns the current date serial number.
  628. JReturns the area of a circle with a radius of 1, or approximately 3.1415.
  629. @HOURMINFORMAT
  630. lThis constant is used to specify date hours-minutes format.
  631. @FORMAT(9876.54321, @HOURMINFORMAT) -> 1:02 PM
  632. @CODE
  633. Returns the ASCII code for the first character in string.
  634. @CODE("A") -> 65
  635. @CODE("{") -> 123
  636. @CODE("Hello") -> 72  : This formula is returning the ASCII code for "H"
  637. Returns the logarithm, base 10, of num.
  638. @LOG(45) = 1.6532
  639. +10^(@LOG(292)) -> 292: This formula takes the base 10 log of 292, then raises 10 to that power, resulting in the number it began with.
  640. Takes the average of numeric records that match criteria.
  641. This is a sample database:
  642.        A      B     C       D
  643. 1    NAME   GRADE  GPA    GRADE
  644. 2    Joe    B       3.2   B
  645. 3    Sue    A       4.7
  646. 4    Robert C       2.7
  647. 5    Steve  A       4.5
  648. 6    Ann    B       4.2
  649. The database range is A1:C6.  The criteria range is D1:D2.
  650. To calculate the average GPA of everyone who earned a B use this formula:
  651. =DAVE(A1:C6,2,D1:D2) -> 3.7
  652. @DATE
  653. MReturns a date serial number for the year, month and day. A date serial number is the number of days since January 1, 1970.  Dates after the year 2000 can be specified by placing a 1 before the year.
  654. @DATE(92,8,24) -> 8271 : This is the date number for 
  655. 24-Aug-92.
  656. @DATE(79,10,31) -> 3590 : This is the date-number for 
  657. 31-Oct-79.
  658. Returns the Arccosine of num (in radians). ACOS(COS(num)) = num.
  659. What is the angle with the cosine = 0.7071?
  660. =ACOS(0.7071) -> 0.7854 (radians) : This is equivalent to an angle of 45 degrees.
  661. =ACOS(0.7071)*180/pi -> 45 : This gives the same answer as above, but in degrees.
  662. TINTL1FORMAT
  663. {This constant is used to specify twenty four hour time format with seconds.
  664. =FORMAT(9876.54321, TINTL1FORMAT) -> 13:02:13
  665. CReturns the Cosine of num.
  666. @COS(@PI) -> -1
  667. @COS(@LN(3)) -> 0.4548
  668. Divides the sum of the numbers by the count of numeric and string entries, using the same rules for counting as @COUNT().
  669. @AVE(4,5,25,3) = 9.25
  670. Given the following data:
  671. A1: 184
  672. A2: 592
  673. A3: 97
  674. @AVE(A1:A3) = 291
  675. Note: This function differs from AVE(num|range[,...]) or AVERAGE(num|range[,...]). @AVE() and @AVG() treat string entries as having a zero value, but AVE() and AVERAGE() ignore string entries.
  676. @HISTOGRAM
  677. uGroups the values in range into #-of-divisions divisions, counts the number of items in each division. The formula should appear in #-of-divisions cells, starting at anchor.  It returns the number of items in the division that is offset from the anchor point.
  678.      A     B
  679. 1  Name   GPA
  680. 2  Joe    2.6
  681. 3  Sue    3.7
  682. 4  Robert 3.2
  683. 5  Steve  3.0
  684. 6  Ann    3.8
  685. 7  John   3.5
  686. 8  Mary   2.9
  687. 9  Chris  3.5
  688. To divide the students into 5 divisions by GPA and determine how many fall into each division:
  689. A10: =HISTOGRAM($B$2:$B$9,5,$A$10) -> 1
  690. B10: =SAME($A$10) -> 2
  691. C10: =SAME($A$10) -> 1
  692. D10: =SAME($A$10) -> 2
  693. E10: =SAME($A$10) -> 2
  694. @TIMEVALUE
  695. YConverts a string to a date serial number.
  696. A1: '10
  697. A2: '58
  698. A3: '29
  699. @TIMEVALUE(A1&":"&A2&":"&A3) -> 0.45728 : This formula takes the string contents of cells A1, A2 & A3 and concatenates them into the string "10:58:29", then converts that string to a time value.
  700. A3: 12:34 am, @TIMEVALUE(A3) -> 0.023611 : This is the date-number for 12:34 am.
  701. PROPER
  702. Converts str to "proper" capitalization. It will turn the first letter of each word to upper case; otherwise, it converts the letter to lower case.
  703. =PROPER("MS. JANET KRAFT") -> Ms. Janet Kraft
  704. =PROPER("all entries posted before 7/2") -> All Entries Posted Before 7/2
  705. A bit of history: Upper and lower case does not refer to the size of the letters, but to where they were stored in type cabinets. The capital letters were stored in the "Upper Case," while the small letters were stored in the "Lower Case."
  706.     @ISSTRING
  707. Returns 1 is exp results in a string. Returns 0 otherwise.
  708. @ISSTRING(@VALUE("340")) -> 0
  709. @ISSTRING(@LEFT("Goodbye!",4)) -> 1
  710. @ISSTRING("Some text") -> 1
  711. BEEPIF
  712. Beeps and returns 1 if the condition is true, returns 0 if false.
  713. C7:  100
  714. =BEEPIF(C7<200) :  This formula will beep one time.
  715. =BEEPIF(rand>0.5) : This formula will generate a random number between 0 and 1.  If the number is > 0.5, the it beeps and returns 1.  Otherwise it returns 0.
  716.     @SETCOLOR
  717. Sets the color of the current cell and returns value. Red, Green, and Blue are numbers between 0 and 1 that set the percentage of red, green, and blue that will be mixed together to create the color. White is all ones and black is all zeros. If any of the color components are out of bounds or result in errors, the color is not changed.
  718. @SETCOLOR(A1,@IF(A1 > 100,1,0),@IF(A1 > 100,0,1),0) : This formula sets the color to red if the number is greater than 100, otherwise sets the color to green.
  719. REPLACE
  720. Replaces num characters in str starting offset characters from the first character with the string new-str.
  721. =REPLACE("The cost is $450, COD",13,3,"2,500") -> The cost is $2,500, COD
  722. =REPLACE("Robert J. Stevenson",7,1,"L") -> Robert L. Stevenson
  723. @ATAN2
  724. !Returns the Arctangent of x/y. This gives the angle of a line from the origin to x,y.
  725. @ATAN2(3,1) -> 0.3217 (radians): This is equivalent to an angle of 18.4 degrees.
  726. This function differs from ATAN2(x,y). @ATAN2() requires the Y parameter first. ATAN2() requires the X parameter first.
  727. @TODAY
  728. YReturns the current date serial number without the current time (only the current date.)
  729. @DKGRAYCOLOR
  730. \A constant referring to Dark GRAY for use in functions that change color (e.g. @SETCOLOR())
  731. @ISEMPTY
  732. @Returns 1 if the cell at adr contains no value, else returns 0.
  733. @WHITECOLOR
  734. XA constant referring to WHITE for use in functions that change color (e.g. @SETCOLOR())
  735. @REPEAT
  736. Returns string repeated times times.
  737. @REPEAT("X",10) -> XXXXXXXXXX
  738. @REPEAT("over and ",4) -> over and over and over and over and
  739. Returns the square root of the number.
  740. =SQRT(34) -> 5.8310
  741. =SQRT(LOG(200)) -> 1.5169
  742. =SQRT(VAR(200,500,100)) -> 170 : This formula computes the standard deviation of the values given in the variance function.
  743. @ROWS
  744. Returns the number of rows in a range.
  745. @ROWS(A1:H20) -> 20
  746. If RANGE1 is the name assigned to the range B1:CC200, @ROWS(RANGE1) -> 200
  747. @ROOT
  748. /Returns the nth root of num.
  749. @ROOT(81,4) -> 3
  750. TRUE()
  751. Returns a logical true value.
  752. CALCRATE
  753. XCalculates the interest rate such that  present-value = @PV(payment,interest-rate,term).
  754. ISREF
  755. Returns 1 if exp is a cell or range reference. Returns 0 otherwise.
  756. =ISREF(A1) -> 1 (true)
  757. If RANGE1 has been assigned A1:C10, =ISREF(RANGE1) -> 1
  758. EXACT
  759. 0Returns 1 if the strings match exactly. Returns 0 otherwise.
  760. =EXACT("Daytime","Daytyme") -> 0 (false)
  761. A1="hello" and B1="hello": =EXACT(A1,B1) -> 1 (true)
  762. Note: When you use = to match strings, the comparison ignores case. For example, "Upper" = "upper" is true, but EXACT("Upper", "upper") is false.
  763. @TRIM
  764. Removes leading and trailing spaces from string. It also converts multiple consecutive spaces in string to single spaces.
  765. A3: Account #        3040302     40303
  766. @TRIM(A3) -> Account # 3040302 40303
  767. @TRIM("    Anything    at    all.") -> Anything at all.
  768.     @NEXTYEAR
  769. Returns the next year of the date. If the date is 2/29 of a leap year, the date returned is 2/28 of the following year.
  770. @NEXTYEAR(@NOW) : This formula returns a date-number one year from the current date.
  771. @NEXTYEAR(@DATE(93,6,20)) -> 8936 : This is the date-number for 20-Jun-94.
  772. @SIGN
  773. Returns 0 if num is zero, -1 if num is less than 0, and 1 if num is greater than 0.
  774. B7: @RAND
  775. @SIGN(B7-0.5) : This formula returns the sign of a randomly generated number between 0.5 and -0.5.
  776. @SIGN(-405) -> -1
  777. AVERAGE
  778. ~Divides the sum of the numbers by the count of numeric entries. Uses the same rules for counting as COUNT().
  779. =AVERAGE(4,5,25,3) -> 9.25
  780. Given the following data:
  781. A1: 184
  782. A2: 592
  783. A3: 97
  784. =AVE(A1:A3) -> 291
  785. Note: This function is different than @AVE(num|range[,...]) or @AVG(num|range[,...]). AVE() and AVERAGE() ignore string values. @AVE() and @AVG() treat string values as zero.
  786. @DINTL2FORMAT
  787. pThis constant is used to specify the numeric date month-day format.
  788. @FORMAT(9876.54321, @DINT2FORMAT) -> 01/15
  789. @DVAR
  790. Returns the variance of the records that match the criteria. Strings have a value of zero.
  791. This is a sample database:
  792.       A        B        C        D
  793. 1   STATE   REGION   AVG RF   REGION
  794. 2   AL      South       3.7   West
  795. 3   CA      West        2.1   South
  796. 4   NJ      East        5.2
  797. 5   FL      South       4.9
  798. 6   LA      South       6.8
  799. 7   TX      West        5.0
  800. 8   MA      North       7.6
  801. 9   AZ      West        2.2
  802. 10  NV      West        2.4
  803. The database range is A1:C10.  The criteria range is D1:D3.
  804. To find the variance of rainfall  in the Southern and Western regions use this formula:
  805. @DVAR(A1:C10,2,D1:D3) -> 2.7192
  806. INDEX
  807. Returns the cell that is row rows and col columns offset from the upper left corner of range.
  808.      A     B     C
  809. 1     10    20    30
  810. 2   3942  4932  5929
  811. 3   4920  5929  9294
  812. =INDEX(A1:C3,2,2) -> 9294
  813. A10: 1
  814. A11: 0
  815. =INDEX(A1:C3,A10,A11) -> 3942
  816. Note: This function is different from @INDEX(range,col,row). INDEX() specifies the offset in row then column order. @INDEX() specifies the offset in column then row order.
  817. Returns the Sum of the Years Digits depreciation for an asset that cost cst, has a salvage value of slvg, a life of life in period per.
  818. A company buys a delivery van for $12,000.  It has a useful life of 5 years and will be worth $2,000 at the end of that time.  How much depreciation can the company write off in years 1,2 and 4?
  819.     year 1:  =SYD(12000,2000,5,1) -> $3,333
  820.     year 2:  =SYD(12000,2000,5,2) -> $2,667
  821.     year 4:  =SYD(12000,2000,5,4) -> $1,333
  822.     @ISNUMBER
  823. 0Returns 1 if exp returns a numeric result. Returns 0 otherwise.
  824. @ISNUMBER(@STRING(300,0)) -> 0 : This formula converts the number "300" to a string using @STRING().  It then uses @ISNUMBER() to test if that result is a value and returns 0 (false).
  825. @ISNUMBER(34) -> 1
  826. A3: +394 - 100
  827. @ISNUMBER(A3) -> 1
  828. FReturns a random number between 0 and 1, including 0 and excluding 1.
  829. TODAY
  830. @CHAR
  831. 5Returns the ASCII character for num.
  832. @CHAR(68) -> D
  833. MReturns the straight-line depreciation of an asset that cost cst, has a salvage value of slvg, and a life of life.
  834. A company buys a delivery van for $12,000.  It has a useful life of 5 years and will be worth $2,000 at the end of that time.  How much depreciation can the company write off each year?
  835.     =SLN(12000,2000,5) -> $2,000
  836. 3Computes the Net Present Value of an investment with a given stream of income at a given interest rate. Each payment can be a value or a range. If it is a range, each of the numbers in the range is included in the calculation.
  837. An apartment building is being offered for sale for $400,000.  Expected rental incomes for years 1-5 are $79,000, $85,000, $85,000, $103,000 and $120,000 and the interest rate is expected to stay close to 7%.  Is this a worthwhile investment?
  838.            A
  839. 1      -400000
  840. 2        79000
  841. 3        85000
  842. 4        85000
  843. 5       103000
  844. 6       120000
  845. To figure out the net present value of the cash in-flows:
  846.     =NPV(7%,A2:A6) -> $381,596
  847. To figure out the value of the project:
  848.      Project Value = Initial Cost + NPV
  849.           +A1+NPV(7%,A2:A6) -> -$18,404
  850. No, this project is not worthwhile.
  851. Calculates the payment required for a loan payoff.
  852. What would be the monthly payment on an $40,000 home improvement loan, to be repaid in 5 years at a fixed rate of 9%?
  853.      =PMT(9%/12,5*12,-40000) -> $830.33 per month.
  854. UPPER
  855. Converts all the characters in str to upper case.
  856. =UPPER("Uppers only") -> UPPERS ONLY
  857. =UPPER(MID("robert c. smith",8,2)) -> C.  :  This formula uses MID() to return the 8th and 9th characters from the string "Robert C. Smith".  The UPPER() function then capitalizes this result.
  858. @ATAN
  859. pReturns the Arctangent of num.
  860. @ATAN(5.6713) = 1.3962 (radians): This is equivalent to an angle of 80 degrees.
  861. nIf num is zero or not a number, 1 is the result; otherwise, 0 is the result.
  862. =NOT(34) -> 0
  863. =NOT("Text") -> 1
  864. Returns a string containing the first num characters from the left of str.
  865. =LEFT("The first twelve characters",12) -> The first tw
  866. =LEFT("ABCDEFG",4) -> ABCD
  867. @TINTL2FORMAT
  868. |This constant is used to specify twenty four hour time format without seconds.
  869. @FORMAT(9876.54321, @TINTL2FORMAT) -> 13:02
  870. jReturns the variance of the numeric records that match the criteria.
  871. This is a sample database:
  872.       A        B        C        D
  873. 1   STATE   REGION   AVG RF   REGION
  874. 2   AL      South       3.7   West
  875. 3   CA      West        2.1   South
  876. 4   NJ      East        5.2
  877. 5   FL      South       4.9
  878. 6   LA      South       6.8
  879. 7   TX      West        5.0
  880. 8   MA      North       7.6
  881. 9   AZ      West        2.2
  882. 10  NV      West        2.4
  883. The database range is A1:C10.  The criteria range is D1:D2.
  884. To find the variance of rainfall  in the Southern and Western regions use this formula:
  885. =DVAR(A1:C10,2,D1:D3) -> 2.7192
  886. STDEV
  887. Results in the standard deviation of the ranges or list. Blank cells and strings are not counted.
  888.          A      B
  889. 1      NAME   SCORE
  890. 2      Anna    65.8
  891. 3      Bill    95.4
  892. 4      Donna   30.2
  893. 5      Mark    54.9
  894. 6      Maria   35.1
  895. 7      Susan   75.9
  896. 8      John    83.2
  897. 9      Rob     33.1
  898. 10     Ethan   81.8
  899. =STDEV(B2:B10) -> 23.1
  900. Note: This functions are different than @STD(num|range[,...]). STDDEV() and STDEV() ignore string values. @STD() treats string values as zero.
  901. @MONYEARFORMAT
  902. hThis constant is used to specify date month-year format.
  903. @FORMAT(9876.54321, @MONYEARFORMAT) -> Jan-97
  904. &Calculates the internal rate of return of an investment.
  905. A rug-cleaning business is being offered for sale for $180,000.  The owner says the business should net $25,000, $35,000, $39,000, $40,000 and $55,000 in years 1-5.  What is this project's internal rate of return?
  906.          A
  907. 1     -180000
  908. 2       25000
  909. 3       35000
  910. 4       39000
  911. 5       40000
  912. 6       55000
  913. The initial expense is entered as a negative number in cell A1.  The range of cash inflows are given in cells A2:A6.  To calculate this project's IRR value:
  914.     =IRR(B1,A1:A6) -> 2.3%
  915. Returns the Arcsine of num (in radians). ASIN(SIN(num)) = num.
  916. What is the angle whose sine = 0.3090?
  917. =ASIN(0.3090) -> 0.3141 (radians) : This is equivalent to an angle of 18 degrees.
  918. =ASIN(0.3090)*180/pi -> 18 : This gives the same answer as above, but in degrees.
  919. Returns the smallest numeric item in the records that match the criteria.
  920. This is a sample database:
  921.        A      B     C        D
  922. 1    NAME   SALES  REGION  REGION
  923. 2    Joe     3000  East    East
  924. 3    Sue     4500  North
  925. 4    Robert  2800  East
  926. 5    Steve   3700  South
  927. 6    Ann     2400  West
  928. The database range is A1:C6.  The criteria range is D1:D2.
  929. To find the smallest sales figure in the Eastern region use this formula:
  930. =DMIN(A1:C6,1,D1:D2) = 2800
  931. cReturns the location of sub-str in str. It starts searching for sub-str offset characters from the left of str. Returns an error if the string is not found.
  932. =FIND("hampton","Northampton",1) -> 4
  933. =FIND("hampton","Northampton",6) -> !ERR (because it starts searching at the 6th character)
  934. A1:  "The third word in this sentence."
  935. =FIND("word",A1,1) -> 10
  936. Returns the remainder of num divided by div.
  937. =MOD(12,5) -> 2
  938. =NOW-MOD(NOW,7)+5  :  This function returns the date-number for Monday of the current week..
  939. >Computes the Sine of num (expressed in radians).
  940. @SIN(60*PI/180) -> 0.8660  :  This formula gives the sine of 60 degrees.
  941. A mountain road goes up at an incline of 25 degrees.  If the road is straight and is 20 miles long, what vertical distance will a car travel to climb it?
  942. +20 * @SIN(25*(@pi/180)) -> 8.45  miles
  943. The result is the statistical variance of the numbers. Strings are counted as 0, and blank cells are not counted.
  944.          A      B
  945. 1      NAME   SCORE
  946. 2      Anna    65.8
  947. 3      Bill    95.4
  948. 4      Donna   30.2
  949. 5      Mark    54.9
  950. 6      Marie   35.1
  951. 7      Susan   75.9
  952. 8      John    83.2
  953. 9      Rob     33.1
  954. 10     Ethan   81.8
  955. @VAR(B2:B10) = 531.6010
  956. Note: This function differs from VAR(num|range[,...]). @VAR() counts string values as zero, but VAR() ignores string values.
  957. CELLPOINTER
  958. Returns the value for the attribute of the currently active cell after a recalculation of the sheet. This is valuable for macros. See CELL() or @CELL() for information about attributes.
  959. @CURRENTVALUE
  960. The current value of the cell (before the recalc).  This is useful for comparing old cell values with other values, such as taking the larger of the current value or the value of another cell.
  961. Results in the largest number in the range or list.
  962. =MAX(4.5,3.2,2.5,2.5,6.2) -> 6.2
  963. =MAX(4,4,4) -> 4
  964.          A     B     C
  965. 1        300         400
  966. 2          0         400
  967. 3        200         100
  968. 4        300        5000
  969. 5        700
  970. 6        600
  971. 7        300
  972. 8        500
  973. =MAX(A1:A8,C1:C8) -> 5000
  974. Note: This function is different than @MAX(num|range[,...]). MAX() ignores string values. @MAX() treats string values as zero.
  975. @FRAC
  976. Returns the fractional component of num.
  977. @FRAC(@NOW) : This formula returns only the time component of the current date.
  978. @FRAC(3.14159) -> 0.14159
  979. Returns a string that is len characters taken from str starting start characters from the left of str.
  980. =MID(``Have a great day!'',8,5) -> great
  981. A1 = ``Robert Quimby Douglas'',
  982.     =MID(A1,8,6) -> Quimby
  983. Returns e to the num power. 
  984. EXP(LN(num)) = num.
  985. @EXP(4) -> 54.5982
  986. @EXP(12%*5) * 30000 -> $54,664: This formula calculates the present value of $30,000 invested at 12% continually compounded interest for a term of 5 years.
  987. Returns the integer portion of num.
  988. @INT(@RAND*10) : This formula returns a random number between 0 and 9.
  989. A3: 68293
  990. @INT(@LOG(A3))+1 -> 5 : This formula tells how many digits are the number in cell A3.
  991. Returns the smallest number in the range or list. String values are considered to be zero.
  992. A1: 300
  993. A2: 400
  994. A3: Hello!
  995. @MIN(A1:A3)-> 0 :  This formula returns zero because the string "Hello!" evaluates to zero.
  996. A1: 0.0002
  997. A2: 0
  998. A3: -339492
  999. @MIN(A1:A3) -> -339492
  1000. Note: This function differs from MIN(num|range[,...]). @MIN() treats string value as zero, but MIN() ignores string values.
  1001. `Returns an error. All cells that refer to a cell with an error will evaluate to errors as well.
  1002. 5Returns the ASCII character for num.
  1003. =CHAR(68) -> D
  1004. THISCOLUMN
  1005. @Returns the column number of the cell containing this constant.
  1006. @DATEVALUE
  1007. Converts a date string to a date serial number. If the value is a number, just returns the number.
  1008. @DATEVALUE("02/04/92") -> 8069
  1009. A3: 'Jul-94
  1010. @DATEVALUE(A3) -> 8947 : This is the date serial number for 1-Jul-94
  1011. Computes the present value of per payments of pmt with a rate of rate.
  1012. What is the present value of the retirement annuity which promises to pay $30,000 every year for the next 20 years, given an interest rate of 12%?
  1013. @PV(30000,12%,20) -> $224,083.31
  1014. LOG10
  1015. Returns the logarithm, base 10, of num.
  1016. =LOG10(45) -> 1.6532
  1017. +10^(LOG(292)) -> 292  :  This formula takes the base 10 log of 292, then raises 10 to that power, resulting in the number it began with.
  1018. Returns the natural logarithm of num.
  1019. @LN(27) -> 3.2958
  1020. B8: 1024
  1021. @LN(B8)/@LN(2) -> 10 : This formula returns the base 2 log of cell B8.
  1022. Computes the future value of per payments of pmt with the interest rate of rate.
  1023. If $2,000 were deposited every year into an account earning 9% annual interest, how much would the account be worth in 20 years?
  1024.     @FV(2000,9%,20) = $102,320.24
  1025. Returns the Double Declining Balance depreciation for an asset that cost cst, has a salvage value of slvg, a life of life in period per.
  1026. A company buys a delivery van for $12,000.  It has a useful life of 5 years and will be worth $2,000 at the end of that time.  How much depreciation can the company write off in years 1,2 and 3?
  1027.        year 1:  =DDB(12000,2000,5,1) -> $4,800
  1028.        year 2:  =DDB(12000,2000,5,2) -> $2,880
  1029.        year 3:  =DDB(12000,2000,5,3) -> $1,728
  1030. @CTERM
  1031. Computes the number of periods required for an investment of pv to grow to fv at rate.
  1032. How long will it take for a $20,000 investment to grow to $40,000 at an annual rate of 5%?
  1033. @CTERM(0.05,20000,40000) -> 14.2 years
  1034. How many months will it take for a $4,000 investment to grow to $8,000, being compounded monthly at a rate of 8%?
  1035. @CTERM(8%/12,4000,8000) -> 104 months (about 8 1/2 years)
  1036. @LOWER
  1037. YConverts all the characters in str to lower case.
  1038. @LOWER("Bill Johnson") = bill johnson
  1039. FORMAT
  1040. This function returns the given number num in the format specified by the format constant fmt-const.  You may optionally specify the precision prec, the number of decimal places in the number. 
  1041. =FORMAT(18.9, SCIENTIFICFORMAT) -> 1.89e+01
  1042. ISSTRING
  1043. Returns 1 is exp results in a string. Returns 0 otherwise.
  1044. =ISSTRING(VALUE("340")) -> 0
  1045. =ISSTRING(LEFT("Goodbye!",4)) -> 1
  1046. =ISSTRING("Some text") -> 1
  1047. Returns a special error, NA. All cells that refer to a cell with an error will evaluate to errors as well. @NA is useful to designate cells that have a value that is not available or defined.
  1048. @PERCENTFORMAT
  1049. bThis constant is used to specify the percent format.
  1050. @FORMAT(0.09389, @PERCENTFORMAT, 2) -> 9.39%
  1051. @EXACT
  1052. &Returns 1 if the strings match exactly, 0 otherwise.
  1053. @EXACT("Daytime","Daytyme") -> 0 (false)
  1054. A1: "hello"
  1055. B1: "hello"
  1056. @EXACT(A1,B1) -> 1 (true)
  1057. Note: When you use = to match strings, the comparison ignores case. For example, "Upper" = "upper" is true, but @EXACT("Upper", "upper") is false.
  1058. If exp is a string, returns exp; otherwise it returns a zero length string. This function is used to guarantee that an expression is a string.
  1059. @S(343) -> "" (blank string)
  1060. A1: 2000
  1061. A2: Orders
  1062. @S(A1)&@S(A2) = Orders
  1063. @DCOUNT
  1064. Counts all the numeric and string items matching criteria in the column offset from the upper left corner of the database range.
  1065. This is a sample database:
  1066.        A      B     C       D
  1067. 1    NAME   GRADE  GPA    GRADE
  1068. 2    Joe    B       3.2   B
  1069. 3    Sue    A       4.7
  1070. 4    Robert C       2.7
  1071. 5    Steve  A       4.5
  1072. 6    Ann    B       4.2
  1073. The database range is A1:C6.  The criteria range is D1:D2.
  1074. To count the number of students  who earned B's use this formula:
  1075. @DCOUNT(A1:C6,2,D1:D2) -> 2
  1076. @VLOOKUP
  1077. Looks up code in the vertical table and returns the cell offset cells from the left side of the first match.
  1078. If the first column contains only strings and code is a number, it returns the value from the last row.  If code is also a string, but doesn't match any of the table entries, !ERR is returned.
  1079.      A    B
  1080. 1    A    5.0
  1081. 2    B    4.0
  1082. 3    C    3.0
  1083. 4    D    2.0
  1084. 5    F      0
  1085. @VLOOKUP("A",A1:B5,1) -> 5.0
  1086. @VLOOKUP("D",A1:B5,1) -> 2.0
  1087. @VLOOKUP("Incomplete",A1:B5,1) -> !ERR
  1088. @VLOOKUP(3.0,A1:B5,1) -> 0
  1089. COUNT
  1090. Counts the number of numeric entries. Cells or items containing blanks or strings are not counted.
  1091.          A       B
  1092. 1      Duck      10
  1093. 2      Soup      20
  1094. 3         1.86   20
  1095. 4         $300   10
  1096. 5      '======   30
  1097. 6                50
  1098. 7           40   70
  1099. =COUNT(A1:A7) -> 3 : There are only three items in column A because cells A1, A2, and A5 are strings and A6 is blank.
  1100. =COUNT(A1:A7,B1:B7) -> 10 : This counts the 3 items in column A and adds the 7 items in column B.
  1101. =COUNT("Good","Bad","Indifferent",0) -> 1
  1102. This function is different than @COUNT(num|range[,...]). COUNT() only counts numeric values. @COUNT() also counts string values.
  1103. greater than or equal to
  1104. ROUND
  1105. Rounds num to prec decimal places. If prec is less than zero, rounds to the left of the decimal place.
  1106. =ROUND(350.2852,2) -> 350.29
  1107. =ROUND(25492,-3) -> 25000
  1108. @ADDRESS
  1109. iReturns the address for the row and col specified.  @ADDRESS(0,0) is cell A1.
  1110. B1: 15
  1111. @ADDRESS(0,1) -> 15
  1112. equal
  1113. less than or equal to
  1114. @HLOOKUP
  1115. %Looks up code in the horizontal table. Returns the cell offset cells from the top of the first match. If the first row contains numbers and code is less than the first value in the lookup row, !ERR is returned.  If code is greater than the first value but no exact match is found, it returns the value from the last column.
  1116. If the first row contains only strings and no exact match is found, it returns !ERR.
  1117.      A    B    C
  1118. 1     1    2    3
  1119. 2  $200  $40 $500
  1120. @HLOOKUP(2,A1:B3,1) -> $400
  1121. @HLOOKUP(0.5,A1:B3,1) -> !ERR
  1122. @HLOOKUP(5,A1:B3,1) -> $500
  1123. @FIXEDFORMAT
  1124. cThis constant is used to specify the fixed decimal format.
  1125. @FORMAT(42.692, @FIXEDFORMAT) -> 42.69
  1126. @REPLACE
  1127. Replaces num characters in str starting at character start with the string new-str.
  1128. @REPLACE("The cost is $450, COD",13,3,"2,500") -> The cost is $2,500, COD
  1129. @REPLACE("Robert J. Stevenson",7,1,"L") -> Robert L. Stevenson
  1130. NACONST
  1131. HOSTNAME
  1132. 8Returns the name of the machine that Mesa is running on.
  1133.     NEXTMONTH
  1134. Returns a date serial number one calendar month after date. If the day of the month is greater than 28, then it is set to 28.
  1135. A3: 27-Jul-92
  1136. =NEXTMONTH(A3) -> 8274 : This is the date-number for 
  1137. 27-Aug-92.
  1138. =NEXTMONTH(11381) -> 11409 : This is the date-number for 28-Mar-2001.
  1139. Returns a date serial number for a given time.
  1140. =TIME(11,30,00) -> 0.479167 : This is the date-number for 11:30 AM.
  1141. =NOW+TIME(8,0,0) : This formula returns a date-number for the time 8 hours from now.
  1142. @TERM
  1143. @TERM() computes the number of payments of pmt required to reach fv with a interest rate of rate.
  1144. How many $700 monthly payments would be needed to accumulate $250,000 in a bank account earning 4% interest?
  1145. @TERM(700,4%/12,250000) -> 235.6 monthly payments (taking almost 20 years).
  1146.     @CALCRATE
  1147. Takes the formula in cell adr and executes it as if it had been copied and then pasted into the current cell. This is a powerful and valuable function. You can have a master function and a series of functions that are the same. Where you change the master function, the method of calculation used by the other functions is changed. You can use SAME() in conjunction with INDEX(), HLOOKUP(), VLOOKUP(), and to define a formula used in a calculation rather than having a complex IF() statement. An application for this is an employee pay calculation that depends on an employee type. 
  1148. A1: 1
  1149. A2: 2
  1150. If B1: =A1 * 5 and B2: =SAME(B1), then B2 = 10 (A2*5).
  1151. If B1: =A1/5, then B2 changes to 0.4 (A2/5)
  1152. If B1: =SIN(A1), B2 changes to 0.9093 (SIN(A2))
  1153. CURRENTVALUE
  1154. SETBKGCOLOR
  1155. Sets the background color of the current cell and returns value. Red, Green, and Blue are numbers between 0 and 1 that set the percentage of red, green, and blue that will be mixed together to create the color. White is all ones and black is all zeros. If any of the color components are out of bounds or result in errors, the color is not changed.
  1156. =SETBKGCOLOR(A1,IF(A1 > 50 && A1 < 100,1,0),0,0) : This sets the background color to red if the number is greater than 50 and less than 100, otherwise it sets the background color to black.
  1157. Sums all the items matching criteria in the column offset from the upper left corner of the database range.
  1158. This is a sample database:
  1159.       A        B        C        D
  1160. 1   STATE   REGION   AVG RF   REGION
  1161. 2   AL      South       3.7   South
  1162. 3   CA      West        2.1
  1163. 4   NJ      East        5.2
  1164. 5   FL      South       4.9
  1165. 6   LA      South       6.8
  1166. 7   TX      West        5.0
  1167. 8   MA      North       7.6
  1168. 9   AZ      West        2.2
  1169. 10  NV      West        2.4
  1170. The database range is A1:C10.  The criteria range is D1:D2.
  1171. To find the total amount of rainfall for the Southern region use this formula:
  1172. =DSUM(A1:C10,2,D1:D2) -> 15.4
  1173. COMMAFORMAT
  1174. \This constant is used to specify the comma format.
  1175. =FORMAT(238.093, COMMAFORMAT) -> 238.09
  1176. MONTH
  1177. Returns the month for a date serial number.
  1178. =MONTH(DATEVALUE("12/24/92")) -> 12
  1179. =CHOOSE(MONTH(NOW)-1,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")  :  This formula will display the current month.
  1180. Adds all the numbers or sums the numbers in the range. You can specify as many numbers or ranges as you want.
  1181. @SUM(300,400,2300,100) -> 3100
  1182. A1: Blue
  1183. A2: 300
  1184. A4: 900
  1185. B1: 1200
  1186. @SUM(A1:A4,B1) -> 2400
  1187. not equal to
  1188. <AND>
  1189. logical AND
  1190. Returns the day of the month for a date serial number.
  1191. A3: 18-Jul-92
  1192. @DAY(A3) -> 18
  1193. @DAY(@NOW)  :  This formula will return the current day of the month.
  1194. #AND#
  1195. NETWORKDAYS
  1196. Returns the number of working days between the date1 serial number and date2.  Working days are all days other than Saturday, Sunday, and the optional holidays listed.
  1197. =NETWORKDAYS(NOW,NOW+10) : This returns the number of working days between now and 10 days from now.
  1198. tReturns the Absolute Value of num.
  1199. @ABS(-45.3) -> 45.3
  1200. @ABS(@COS(@PI))-> 1
  1201. @ABS(34) -> 34
  1202. @ABS("Absolutely!") -> 0
  1203. @BLUECOLOR
  1204. WA constant referring to BLUE for use in functions that change color (e.g. @SETCOLOR())
  1205. @CURRENTNUMBER
  1206. The current numeric value of a cell.  Can be used for time series functions.
  1207. To remember the largest number entered into cell A1, use
  1208. @if(a1 > @currentnumber,a1,@currentnumber).
  1209. To count the number of times the worksheet was recalculated, use
  1210. @currentnumber + 1
  1211.     DMYFORMAT
  1212. nThis constant is used to specify the date day-month-year format.
  1213. =FORMAT(9876.54321, DMYFORMAT) -> 15-Jan-97
  1214. STDDEV
  1215. @RANGE
  1216. Returns the address for the range specified by the upper row, left column, lower row, right  column..  @RANGE(0,0,1,1) is the range a1:b2.
  1217. @ISREF
  1218. Returns 1 if exp is a cell or range reference. Returns 0 otherwise.
  1219. @ISREF(A1) -> 1 (true)
  1220. If RANGE1 has been assigned A1:C10, @ISREF(RANGE1) -> 1
  1221. @INDEX
  1222. Returns the cell that is row rows and col columns offset from the upper left corner of range.
  1223.      A     B     C
  1224. 1     10    20    30
  1225. 2   3942  4932  5929
  1226. 3   4920  5929  9294
  1227. @INDEX(A1:C3,2,2) = 9294
  1228. A10: 0
  1229. A11: 1
  1230. @INDEX(A1:C3,A10,A11) = 3942
  1231. Note: This function is different from INDEX(range,row,col). INDEX() specifies the offset in row then column order. @INDEX() specifies the offset in column then row order.
  1232. @UPPER
  1233. Converts all the characters in str to upper case.
  1234. @UPPER("Uppers only") -> UPPERS ONLY
  1235. @UPPER(@MID("robert c. smith",7,2)) -> C.  :  This formula uses @MID() to return the 8th and 9th characters from the string "Robert C. Smith".  The @UPPER() function then capitalizes this result.
  1236. @STRING
  1237. DRounds num to prec decimal places and converts it to a string.
  1238. B3: 5251.769585987
  1239. @STRING(B3,6) -> 5251.769586
  1240. @STRING(3/43,2)&" is now  a string" -> 0.07 is now a string  :  This formula evaluates 3/43, then converts it to a string with 2 decimal places of precision and concatenates it with the text " is now a string".
  1241. logical OR
  1242. @COMMAFORMAT
  1243. ]This constant is used to specify the comma format.
  1244. @FORMAT(238.093, @COMMAFORMAT) -> 238.09
  1245. @FORMAT
  1246. This function returns the given number num in the format specified by the format constant fmt-const.  You may optionally specify the precision prec, the number of decimal places in the number. 
  1247. @FORMAT(18.9, SCIENTIFICFORMAT) -> 1.89e+01
  1248.     CYANCOLOR
  1249. VA constant referring to CYAN for use in functions that change color (e.g. SETCOLOR())
  1250. ADDRESS
  1251. hReturns the address for the row and col specified.  ADDRESS(0,0) is cell A1.
  1252. B1: 15
  1253. =ADDRESS(0,1) -> 15
  1254. DAYMONFORMAT
  1255. bconstant is used to specify date day-month format.
  1256. =FORMAT(9876.54321, DAYMONTHFORMAT) -> 15-Jan
  1257. CURRENCYFORMAT
  1258. aThis constant is used to specify the currency format.
  1259. =FORMAT(555.9, CURRENCYFORMAT) -> $555.90
  1260. @MAGENTACOLOR
  1261. ZA constant referring to MAGENTA for use in functions that change color (e.g. @SETCOLOR())
  1262. @DMAX
  1263. Returns the maximum value of the records in database that match criteria. Strings have a value of zero.
  1264. This is a sample database:
  1265.        A      B     C        D
  1266. 1    NAME   SALES  REGION  REGION
  1267. 2    Joe     3000  East    East
  1268. 3    Sue     4500  North
  1269. 4    Robert  2800  East
  1270. 5    Steve   3700  South
  1271. 6    Ann     2400  West
  1272. The database range is A1:C6.  The criteria range is D1:D2.
  1273. To find the largest sales figure in the Eastern region use this formula:
  1274. @DMAX(A1:C6,1,D1:D2) -> 3000
  1275. MAGENTACOLOR
  1276. YA constant referring to MAGENTA for use in functions that change color (e.g. SETCOLOR())
  1277. Multiplies all the numbers in the parenthesis, or all the numbers in the range.  You may specify a number of different ranges.
  1278. =PROD(3, 5, 10, 2) -> 300
  1279. A1: 3
  1280. A2: 5
  1281. B1: 10
  1282. =PROD(A1:A2, B1, 2) -> 300
  1283. @HOUR
  1284. Returns the hour for a date serial number.
  1285. @HOUR(@TIMEVALUE("23:00:00")) -> 23
  1286. @HOUR(@NOW) : This formula will return the current hour of day.
  1287. @DINTL1FORMAT
  1288. zThis constant is used to specify the numeric date month-day-year format.
  1289. @FORMAT(9876.54321, @DINTL1FORMAT)  -> 01/15/97
  1290. @DSUM
  1291. Sums all the items matching criteria in the column offset from the upper left corner of the database range.
  1292. This is a sample database:
  1293.        A      B     C        D
  1294. 1    NAME   SALES  REGION  REGION
  1295. 2    Joe     3000  East    East
  1296. 3    Sue     4500  North
  1297. 4    Robert  2800  East
  1298. 5    Steve   3700  South
  1299. 6    Ann     2400  West
  1300. The database range is A1:C10.  The criteria range is D1:D2.
  1301. To find the total amount of rainfall for the Southern region use this formula:
  1302. @DSUM(A1:C10,2,D1:D2) -> 15.4
  1303. @ASIN
  1304. Returns the Arcsine of num (in radians). ASIN(SIN(num)) = num.
  1305. What is the angle whose sine = 0.3090?
  1306. @ASIN(0.3090) -> 0.3141 (radians): This is equivalent to an angle of 18 degrees.
  1307. @ASIN(0.3090)*180/@pi -> 18: This gives the same answer as above, but in degrees.
  1308. @DMIN
  1309. Returns the smallest numeric item in the records that match the criteria. String values will count as zeros.
  1310. This is a sample database:
  1311.        A      B     C        D
  1312. 1    NAME   SALES  REGION  REGION
  1313. 2    Joe     3000  East    East
  1314. 3    Sue     4500  North
  1315. 4    Robert  2800  East
  1316. 5    Steve   3700  South
  1317. 6    Ann     2400  West
  1318. The database range is A1:C6.  The criteria range is D1:D2.
  1319. To find the smallest sales figure in the Eastern region use this formula:
  1320. @DMIN(A1:C6,1,D1:D2) -> 2800
  1321. CLEAN
  1322. ,Removes all control characters from string.
  1323. @PROD
  1324. Multiplies all the numbers in the parenthesis, or all the numbers in the range.  You may specifie a number of different ranges.
  1325. @PROD(3, 5, 10, 2) -> 300
  1326. A1: 3
  1327. A2: 5
  1328. B1: 10
  1329. @PROD(A1:A2, B1, 2) -> 300
  1330. Note that cells containing strings are counted as zero.
  1331. @TINTL1FORMAT
  1332. |This constant is used to specify twenty four hour time format with seconds.
  1333. @FORMAT(9876.54321, @TINTL1FORMAT) -> 13:02:13
  1334. @SAME
  1335. Takes the formula in cell adr and executes it as if it had been copied and then pasted into the current cell. This is a powerful and valuable function. You can simply have a master formula and a series of formulas that are the same. Where you change the master formula, the method of calculation used by the other formulas is changed. You can use @SAME() in conjunction with @INDEX(), @HLOOKUP(), and @VLOOKUP() to define a formula used in a calculation rather than having a complex @IF() statement. An application for this is an employee pay calculation that depends on an employee type.
  1336. A1: 1
  1337. A2: 2
  1338. If B1: =A1 * 5 and B2: @SAME(B1), then B2 -> 10 (A2*5).
  1339. If B1: =A1/5, then B2 changes to 0.4 (A2/5)
  1340. If B1: @SIN(A1), B2 changes to 0.9093 (@sin(A2))
  1341. Returns the Sum of the Years Digits depreciation for an asset that cost cst, has a salvage value of slvg, a life of life in period per.
  1342. A company buys a delivery van for $12,000. It has a useful life of 5 years and will be worth $2,000 at the end of that time. How much depreciation can the company write off in years 1, 2 and 4?
  1343.     year 1:    @SYD(12000,2000,5,1) -> $3,333
  1344.     year 2:    @SYD(12000,2000,5,2) -> $2,667
  1345.     year 4:    @SYD(12000,2000,5,4) -> $1,333
  1346. JReturns the straight-line depreciation of an asset that cost cst, has a salvage value of slvg, and a life of life.
  1347. A company buys a delivery van for $12,000. It has a useful life of 5 years and will be worth $2,000 at the end of that time. How much depreciation can the company write off each year?
  1348. @SLN(12000,2000,5) -> $2,000
  1349. DPROD
  1350. Returns the product of all the items matching the criteria in the column offset from the upper left corner of the range. Strings are ignored.
  1351. nIf num is zero or not a number, 1 is the result; otherwise, 0 is the result.
  1352. @NOT(34) -> 0
  1353. @NOT("Text") -> 1
  1354. Computes the internal rate of return of an investment. String entries are considered zero values.
  1355. A rug-cleaning business is being offered for sale for $180,000. The owner says the business should net $25,000, $35,000, $39,000, $40,000 and $55,000 in years 1-5. What is this project's internal rate of return?
  1356.          A
  1357. 1     -180000
  1358. 2       25000
  1359. 3       35000
  1360. 4       39000
  1361. 5       40000
  1362. 6       55000
  1363. The initial expense is entered as a negative number in cell A1. The range of cash inflows are given in cells A2:A6. To calculate this project's IRR value:
  1364. @IRR(B1,A1:A6) -> 2.3%
  1365. Note: This differs from IRR(guess,num|range[,...]). @IRR() counts string entries as zero, but IRR() ignores string entries.
  1366. Returns a string that is len characters taken from str starting start characters from the left of str.
  1367. @MID("Have a great day!",8,5) = great
  1368. A1: "Robert Quimby Douglas",
  1369. @MID(A1,8,6) = Quimby
  1370. MReturns the Cosine of num (in radians).
  1371. =COS(PI) -> -1
  1372. =COS(LN(3)) -> 0.4548
  1373. Returns the Double Declining Balance depreciation for an asset that cost cst, has a salvage value of slvg, a life of life in period per.
  1374. A company buys a delivery van for $12,000.  It has a useful life of 5 years and will be worth $2,000 at the end of that time. How much depreciation can the company write off in years 1,2 and 3?
  1375.     year 1:  =DDB(12000,2000,5,1) -> $4,800
  1376.     year 2:  =DDB(12000,2000,5,2) -> $2,880
  1377.     year 3:  =DDB(12000,2000,5,3) -> $1,728
  1378. @ROUND
  1379. Rounds num to prec decimal places. If prec is less than zero, it rounds to the left of the decimal place.
  1380. @ROUND(350.2852,2) -> 350.29
  1381. @ROUND(25492,-3) -> 25000
  1382. SETCOLOR
  1383. Sets the color of the current cell and returns value. Red, Green, and Blue are numbers between 0 and 1 that set the percentage of red, green, and blue that will be mixed together to create the color. White is all ones and black is all zeros. If any of the color components are out of bounds or result in errors, the color is not changed.
  1384. =SETCOLOR(A1,IF(A1 > 100,1,0),IF(A1 > 100,0,1),0) : This sets the color to red if the number is greater than 100, otherwise it sets the color to green.
  1385. @GENERALFORMAT
  1386. bThis constant is used to specify the general format.
  1387. @FORMAT(238.093, @GENERALFORMAT) -> 238.093
  1388. REDCOLOR
  1389. UA constant referring to RED for use in functions that change color (e.g. SETCOLOR())
  1390. WEEKDAY
  1391. Returns the day of the week for a date serial number, 0 - Sunday through 6 - Saturday.
  1392. =WEEKDAY(NOW-5) : This returns the day of the week 5 days prior to today.
  1393. A7: "6/20/82"
  1394. =WEEKDAY(DATEVALUE(A7)) -> 0 : Returns the day of the week for 20-Jun-82.
  1395. @PROPER
  1396. Converts str to "proper" capitalization. It will turn the first letter of each word to upper case; otherwise, it converts the letter to lower case.
  1397. @PROPER("MS. JANET KRAFT") = Ms. Janet Kraft
  1398. @PROPER("all entries posted before 7/2") = All Entries Posted Before 7/2
  1399. YELLOWCOLOR
  1400. XA constant referring to YELLOW for use in functions that change color (e.g. SETCOLOR())
  1401.     @CONVDATE
  1402. Converts a number in the format YYMMDD to a date serial number. Dates after the year 2000 can be specified by placing a 1 before the year.
  1403. @CONVDATE(930210) -> 8441 : This is the date-number of 
  1404. 10-Feb-93
  1405. @CONVDATE(1100410) -> 14709 : This returns the date number of 10-Apr-2010.
  1406. THISROW
  1407. =Returns the row number of the cell containing this constant.
  1408.     @HOSTNAME
  1409. @WORKDAY
  1410. Returns the date serial number days working days from the date serial number.  Working days are all days other than Saturday, Sunday, and the optional holidays listed.
  1411. @WORKDAY(@NOW,10) : This returns the date serial number of the day 10 working days from now.
  1412. @NEXT
  1413. Returns the next logical value after value. For example, if value = "Mon", then @NEXT() returns "Tue". Values for months, days, and quarters are built in. If value is a number, @NEXT() adds 1 or inc to the number. For quarterly information, it will increment the quarter. When the quarter reaches 4, the next quarter is Q1 of the next year. For example, @NEXT("Q4 `92") is "Q1 `93".
  1414. @NEXT("Q4 '92")  = Q1 '93
  1415. @NEXT("January") = February
  1416. @NEXT("Region 1") = Region 2
  1417. GETINPUT
  1418. 2Returns the user-typed input string for the cell.
  1419. DINTL2FORMAT
  1420. oThis constant is used to specify the numeric date month-day format.
  1421. =FORMAT(9876.54321, DINT2FORMAT) -> 01/15
  1422. Returns the interest rate for an investment of pv to achieve a value of fv in per periods.
  1423. How much interest would an a bank account need to earn for an investment of $67,000 to grow to $100,000 in 5 years or less?
  1424.     RATE(100000,67000,5) = 8.34% or more.
  1425. Returns 1 if exp returns an NA error. Returns 0 otherwise.
  1426. =ISNA(@NA) -> 1 (true)
  1427. A1: 34
  1428. A2: 49
  1429. A3: =NA
  1430. =ISNA(SUM(A1:A3)) -> 1  :  This formula returns 1 (true) because cell A3 contains NA, which causes SUM(A1:A3) to evaluate to NA also.
  1431.     TIMEVALUE
  1432. WConverts a string to a date serial number.
  1433. A1: '10
  1434. A2: '58
  1435. A3: '29
  1436. =TIMEVALUE(A1&":"&A2&":"&A3) = 0.45728 : This formula takes the string contents of cells A1, A2 & A3 and concatenates them into the string "10:58:29", then converts that string to a time value.
  1437. A3: 12:34 am
  1438. =TIMEVALUE(A3) -> 0.023611 : This is the date-number for 12:34 am.
  1439. RAND()
  1440. @CELL
  1441. Returns information about a the cell at adr. atrb defines the type of information requested.                
  1442. @CELL("address",U7) = $U$7
  1443. @CELL("row",U7) = 7
  1444. @CELL("col",U7) = 21
  1445. U7 = @PI, @CELL("contents",U7) = 3.141593
  1446. ADDRESS - returns the address of the cell
  1447. ROW - returns the row of the cell
  1448. COL - returns the column of the cell
  1449. CONTENTS - returns the contents of the cell
  1450. FORMAT - returns the format of the cell. Formats are:
  1451.     G - General
  1452.     Fn - Fixed Decimal n places                                    
  1453.     Sn - Scientific Format n decimal places
  1454.     Cn - Currency format n decimal places
  1455.     ,n - Comma format n decimal places
  1456.     + - Chart Format
  1457.     Pn - Percent Format n decimal places
  1458.     T - Text Format
  1459.     H - Hidden Format
  1460.     D1 - Day Month Year Format
  1461.     D2 - Day Month Format
  1462.     D3 - Month Year Format
  1463.     D6 - Hours Minutes Seconds Format
  1464.     D7 - Hours Minutes Format
  1465.     D4 - Int'l Date Format 1
  1466.     D5 - Int'l Date Format 2
  1467.     D8 - Int'l Time Format 1
  1468.     D9 - Int'l Time Format 2
  1469. PREFIX - The string prefix in Lotus Format
  1470. PROTECT - Returns 0 if the cell is Unprotected, 1 otherwise
  1471. TYPE - b - blank cell, v - number value, l - string value
  1472. WIDTH - Returns the width of the column in characters
  1473. RANGE - Converts a single address to a range
  1474. #NOT#
  1475. This is the logical NOT function, but it is not used the same way as the logical AND and OR. For example, #NOT# 1 will equal 0, while #NOT# 0 will equal 1.
  1476. A3 = +("Blue"="Red") ,  which returns 0 #NOT#A3   =  1  :  The formula in cell A3 asks "is the string 'Blue' = the string 'Red'?  The answer is 0 (false).  The #NOT# function inverts this returning the answer 1 (true)
  1477. #NOT#1 = 0 (false)
  1478. @DSTD
  1479. Returns the standard deviation of the records that match the criteria. Strings have a value of zero.
  1480. This is a sample database:
  1481.        A      B     C        D
  1482. 1    NAME   SALES  REGION  REGION
  1483. 2    Joe     3000  East    East
  1484. 3    Sue     4500  North
  1485. 4    Robert  2800  East
  1486. 5    Steve   3700  South
  1487. 6    Ann     2400  West
  1488. The database range is A1:C10.  The criteria range is D1:D2.
  1489. To find the standard deviation of rainfall  in the Western region use this formula:
  1490. @DSTD(A1:C10,2,D1:D2) -> 1.2029
  1491. RIGHT
  1492. Returns a string containing the num characters from the right side of str.
  1493. =RIGHT("The last ten characters",10) -> characters
  1494. =RIGHT("Ida M. Brown",5) -> Brown
  1495. Converts a date string to a date serial number. If the value is a number, just returns the number.
  1496. =DAYS("02/04/92") = 8069
  1497. A3: 'Jul-94
  1498. =DAYS(A3) = 8947 : This is the date number for 
  1499. 1-Jul-94
  1500. @CELLPOINTER
  1501. PReturns the value for the attribute of the currently active cell after a recalculation of the sheet.  This is valuable for macros. 
  1502. ADDRESS - returns the address of the cell
  1503. ROW - returns the row of the cell
  1504. COL - returns the column of the cell
  1505. CONTENTS - returns the contents of the cell
  1506. FORMAT - returns the format of the cell. Formats are:
  1507.     G - General
  1508.     Fn - Fixed Decimal n places                                    
  1509.     Sn - Scientific Format n decimal places
  1510.     Cn - Currency format n decimal places
  1511.     ,n - Comma format n decimal places
  1512.     + - Chart Format
  1513.     Pn - Percent Format n decimal places
  1514.     T - Text Format
  1515.     H - Hidden Format
  1516.     D1 - Day Month Year Format
  1517.     D2 - Day Month Format
  1518.     D3 - Month Year Format
  1519.     D6 - Hours Minutes Seconds Format
  1520.     D7 - Hours Minutes Format
  1521.     D4 - Int'l Date Format 1
  1522.     D5 - Int'l Date Format 2
  1523.     D8 - Int'l Time Format 1
  1524.     D9 - Int'l Time Format 2
  1525. PREFIX - The string prefix in Lotus Format
  1526. PROTECT - Returns 0 if the cell is Unprotected, 1 otherwise
  1527. TYPE - b - blank cell, v - number value, l - string value
  1528. WIDTH - Returns the width of the column in characters
  1529. RANGE - Converts a single address to a range
  1530. Returns the ASCII code for the first character in string.
  1531. CODE(``A'') = 65
  1532. CODE(``{'') = 123
  1533. CODE(``Hello'') = 72  :  This formula is returning the ASCII code for ``H''
  1534. MReturns a date serial number for the year, month and day. A date serial number is the number of days since January 1, 1970.  Dates after the year 2000 can be specified by placing a 1 before the year.
  1535. =DATE(92,8,24) -> 8271 : This is the date number for 
  1536. 24-Aug-92.
  1537. =DATE(79,10,31) -> 3590 : This is the date-number for 
  1538. 31-Oct-79.
  1539. TINTL2FORMAT
  1540. {This constant is used to specify twenty four hour time format without seconds.
  1541. =FORMAT(9876.54321, TINTL2FORMAT) -> 13:02
  1542. LTGRAYCOLOR
  1543. \A constant referring to Light GRAY for use in functions that change color (e.g. SETCOLOR())
  1544. @VALUE
  1545. @Returns the number value of string.
  1546. @VALUE("3.14159") -> 3.14159
  1547. @VALUE("1200") + 2000 -> 3200
  1548. @VALUE("320/104") -> !ERR
  1549. Note: This function differs from VALUE(string).  If the argument to @VALUE() cannot be completely converted to a number, it returns an error, while VALUE() returns as much of the number as it can.
  1550. ATAN2
  1551. 4Returns the Arctangent of x/y. This gives the angle of a line from the origin to x,y.
  1552. =ATAN2(1,3) -> 0.3218 (radians) : This is equivalent to an angle of 18.4 degrees.
  1553. Note: This function is different than @ATAN2(y,x). ATAN2() requires the X parameter to be first. @ATAN2() requires the Y parameter first.
  1554. IFELSE
  1555. Evaluates exp. If it is a non-zero value, the result is value1. If it is a zero or a string, value2 is the result.
  1556. =IFELSE(5>10,"Something is wrong!","Everything is normal.") -> Everything is normal.
  1557. A1: 3400
  1558. A2: 4000
  1559. A3: 5000
  1560. =IFELSE(SUM(A1:A3)>40000,"Full Capacity","Okay") -> Okay
  1561. @CYANCOLOR
  1562. WA constant referring to CYAN for use in functions that change color (e.g. @SETCOLOR())
  1563. @FALSE
  1564. Returns a logical false value.
  1565. @MINUTE
  1566. Returns the minute for a date serial number.
  1567. @MINUTE(@TIMEVALUE("11:35:20")) -> 35
  1568. @MINUTE(@NOW) : This formula will return the current number of minutes past the hour.
  1569.     ISFORMULA
  1570. AReturns 1 if the cell at adr contains a formula, else returns 0.
  1571. @DPROD
  1572. Returns the product of all the items matching the criteria in the column offset from the upper left corner of the range. Strings are treated as zero values.
  1573. GREENCOLOR
  1574. WA constant referring to GREEN for use in functions that change color (e.g. SETCOLOR())
  1575. HOURMINFORMAT
  1576. kThis constant is used to specify date hours-minutes format.
  1577. =FORMAT(9876.54321, HOURMINFORMAT) -> 1:02 PM
  1578.     @REDCOLOR
  1579. VA constant referring to RED for use in functions that change color (e.g. @SETCOLOR())
  1580. ISBLANK
  1581. @SCIENTIFICFORMAT
  1582. oThis constant is used to specify the scientific notation format.
  1583. @FORMAT(1.69, @SCIENTIFICFORMAT) -> 1.89e+01
  1584.     @PATHNAME
  1585. DAVERAGE
  1586. CHARTFORMAT
  1587. UThis constant is used to specify the chart format.
  1588. =FORMAT(7, CHARTFORMAT) -> +++++++
  1589. SCIENTIFICFORMAT
  1590. nThis constant is used to specify the scientific notation format.
  1591. =FORMAT(1.69, SCIENTIFICFORMAT) -> 1.89e+01
  1592. Returns the year for a date serial number.
  1593. =YEAR(NOW-1000) : This returns the year of the date 1,000 days prior to the current date.
  1594. A7: '6/20/82
  1595. =YEAR(DATEVALUE(A7)) -> 82 : This formula extract the year from the date-string "6/20/82".
  1596. SETALTCOLOR
  1597. Sets the alternate color of the current cell and returns value. Red, Green, and Blue are numbers between 0 and 1 that set the percentage of red, green, and blue that will be mixed together to create the color. White is all ones and black is all zeros. If any of the color components are out of bounds or result in errors, the color is not changed.
  1598. =SETALTCOLOR(A1,IF(A1 < -100,1,0),0,0) : This sets the alternate color to red if the number is less than -100, otherwise it sets the alternate color to black.
  1599. exclusive OR
  1600. Returns string repeated times times.
  1601. =REPEAT("X",10) -> XXXXXXXXXX
  1602. =REPT("over and ",4) -> over and over and over and over and
  1603. Returns 0 if num is zero, -1 if num is less than 0, and 1 if num is greater than 0.
  1604. B7: +RAND
  1605. =SIGN(B7-0.5) : This formula returns the sign of a randomly generated number between 0.5 and -0.5.
  1606. =SGN(-405) -> -1
  1607. VALUE
  1608. Returns the number value of string. If string begins with a number but contains non-numbers, VALUE() returns as much as it can. If string begins with a letter, it returns 0.
  1609. =VALUE("3.14159") = 3.14159
  1610. =VALUE("1200") + 2000 = 3200
  1611. =VALUE("320/104") = 320
  1612. Note: This function is different than @VALUE(string). If the argument to  VALUE() cannot be completely converted to a number, it returns as much of the number as possible.  @VALUE() returns an error.
  1613. Returns the next logical value after value. For example, if value = "Mon", then NEXT() returns "Tue". Values for months, days, and quarters are built in. If value is a number, NEXT() adds 1 or inc to the number. For quarterly information, it will increment the quarter. When the quarter reaches 4, the next quarter is Q1 of the next year. For example, NEXT("Q4 '92") is "Q1 '93".
  1614. =NEXT("Q4 '92") -> Q1 '93
  1615. =NEXT("January") -> February
  1616. =NEXT("Region 1") -> Region 2
  1617. @NETWORKDAYS
  1618. Returns the number of working days between the date1 serial number and date2.  Working days are all days other than Saturday, Sunday, and the optional holidays listed.
  1619. @NETWORKDAYS(@NOW,@NOW+10) : This returns the number of working days between now and 10 days from now.
  1620. Returns the hour for a date serial number.
  1621. =HOUR(TIMEVALUE("23:00:00")) -> 23
  1622. =HOUR(NOW) : This formula will return the current hour of day.
  1623. @ACOS
  1624. Returns the Arccosine of num (in radians). ACOS(COS(num)) = num.
  1625. What is the angle with the cosine = 0.7071?
  1626. @ACOS(0.7071) -> 0.7854 (radians): This is equivalent to an angle of 45 degrees.
  1627. @ACOS(0.7071)*180/@pi -> 45: This gives the same answer as above, but in degrees.
  1628. @TRUE
  1629. WHITECOLOR
  1630. WA constant referring to WHITE for use in functions that change color (e.g. SETCOLOR())
  1631. FILENAME
  1632. Returns the current file name.
  1633. @CHARTFORMAT
  1634. VThis constant is used to specify the chart format.
  1635. @FORMAT(7, @CHARTFORMAT) -> +++++++
  1636. [Computes the Sine of the number. The number is expressed in radians.
  1637. =SIN(60*PI/180) = 0.8660 : This formula gives the sine of 60 degrees.
  1638. A mountain road goes up at an incline of 25 degrees.  If the road is straight and is 20 miles long, what vertical distance will a car travel to climb it? The formula is +20 * SIN(25*(pi/180)) -> 8.45 miles
  1639. The result is the statistical variance of the numbers. Strings and blank cells are not counted.
  1640.          A      B
  1641. 1      NAME   SCORE
  1642. 2      Anna    65.8
  1643. 3      Bill    95.4
  1644. 4      Donna   30.2
  1645. 5      Mark    54.9
  1646. 6      Marie   35.1
  1647. 7      Susan   75.9
  1648. 8      John    83.2
  1649. 9      Rob     33.1
  1650. 10     Ethan   81.8
  1651. =VAR(B2:B10) -> 531.6010
  1652. Note: This function is different than @VAR(num|range[,...]). VAR() ignores string values. @VAR() treats string values as zero.
  1653. @BLACKCOLOR
  1654. XA constant referring to BLACK for use in functions that change color (e.g. @SETCOLOR())
  1655. ?Returns the Tangent of num (in radians).
  1656. =TAN(1.24) -> 2.9119
  1657. CURRENTNUMBER
  1658. The current numeric value of a cell.  Can be used for time series functions.
  1659. To remember the largest number entered into cell A1, use
  1660. =if(a1 > currentnumber,a1,currentnumber).
  1661. To count the number of times the worksheet was recalculated, use
  1662. =currentnumber + 1
  1663. Results in the standard deviation of the ranges or list. Strings are counted as 0, and blank cells are not counted.
  1664.          A      B
  1665. 1      NAME   SCORE
  1666. 2      Anna    65.8
  1667. 3      Bill    95.4
  1668. 4      Donna   30.2
  1669. 5      Mark    54.9
  1670. 6      Maria   35.1
  1671. 7      Susan   75.9
  1672. 8      John    83.2
  1673. 9      Rob     33.1
  1674. 10     Ethan   81.8
  1675. @STD(B2:B10) -> 23.1
  1676. Note: This function differs from STDDEV(num|range[,...]) or STDEV(num|range[,...]). @STD() counts strings as zero, but STDDEV() and STDEV() ignore string values.
  1677.     @FILENAME
  1678. Returns e to the num power. 
  1679. EXP(LN(num)) = num.
  1680. =EXP(4) -> 54.5982
  1681. =EXP(12%*5) * 30000 = $54,664  :  This formula calculates the present value of $30,000 invested at 12% continually compounded interest for a term of 5 years.
  1682. Returns the integer portion of the number num.
  1683. =INT(RAND*10)   :  This formula returns a random number between 0 and 9.
  1684. A3: 68293
  1685. +INT(LOG(A3))+1 -> 5  :  This formula tells how many digits are the number in cell A3.
  1686. FIXED
  1687. BRounds num to prec decimal places and converts it to a string.
  1688. B3:  5251.769585987
  1689. =FIXED(B3,6) = 5251.769586
  1690. =FIXED(3/43,2)&" is now  a string" -> 0.07 is now a string  :  This formula evaluates 3/43, then converts it to a string with 2 decimal places of precision and concatenates it with the text " is now a string".
  1691. gResults in the smallest number in the range or list.
  1692. A1: 300, A2: 400, A3: Hello!
  1693. =MIN(A1:A3) -> 300  :  This formula returns 300, and the string entry in cell A3 is ignored.
  1694. A1: 0.0002, A2: 0, A3: -339492
  1695. +MIN(A1:A3) -> -339492
  1696. Note: This function is different than @MIN(num|range[,...]). MIN() ignores string values. @MIN() treats string values as zero.
  1697. Returns the Arctangent of num (in radians). ATAN(TAN(num)) = num
  1698. =ATAN(5.6713) -> 1.3963 (radians) : This is equivalent to an angle of 80 degrees.
  1699. ?Returns the Tangent of num (in radians).
  1700. @TAN(1.24) -> 2.9119
  1701. Returns the number of characters in the string.
  1702. LENGTH("10% discount on COD") = 19
  1703. A1:  "A short string "
  1704. B1:  "sentence"
  1705. =LEN(A1) -> 15
  1706. =LENGTH(A1&B1) -> 23
  1707. Returns information about a the cell at adr. Atrb defines the type of information requested.
  1708. U7: PI
  1709. =CELL("address",U7) -> $U$7
  1710. =CELL("row",U7) -> 7
  1711. =CELL("col",U7) -> 21
  1712. =CELL("contents",U7) -> 3.141593
  1713. ADDRESS - returns the address of the cell
  1714. ROW - returns the row of the cell
  1715. COL - returns the column of the cell
  1716. CONTENTS - returns the contents of the cell
  1717. FORMAT - returns the format of the cell. Formats are:
  1718.     G - General
  1719.     Fn - Fixed Decimal n places                                    
  1720.     Sn - Scientific Format n decimal places
  1721.     Cn - Currency format n decimal places
  1722.     ,n - Comma format n decimal places
  1723.     + - Chart Format
  1724.     Pn - Percent Format n decimal places
  1725.     T - Text Format
  1726.     H - Hidden Format
  1727.     D1 - Day Month Year Format
  1728.     D2 - Day Month Format
  1729.     D3 - Month Year Format
  1730.     D6 - Hours Minutes Seconds Format
  1731.     D7 - Hours Minutes Format
  1732.     D4 - International Date Format 1
  1733.     D5 - International Date Format 2
  1734.     D8 - International Time Format 1
  1735.     D9 - International Time Format 2
  1736. PREFIX - The string prefix in Lotus Format
  1737. PROTECT - Returns 0 if the cell is Unprotected, 1 otherwise
  1738. TYPE - b - blank cell, v - number value, l - string value
  1739. WIDTH - Returns the width of the column in characters
  1740. RANGE - Converts a single address to a range
  1741. Returns the number of characters in string.
  1742. @LENGTH("10% discount on COD") -> 19
  1743. A1: "A short string "
  1744. B1: "sentence"
  1745. @LEN(A1) = 14
  1746. @LENGTH(A1&B1) = 22
  1747. zReturns the integer portion of the division of num divided by div.  This complements the @MOD() function.
  1748. @DIV(12,5) -> 2
  1749. yReturns the integer portion of the division of num divided by div.  This complements the MOD() function.
  1750. =DIV(12,5) -> 2
  1751. @GREENCOLOR
  1752. XA constant referring to GREEN for use in functions that change color (e.g. @SETCOLOR())
  1753. MINUTE
  1754. Returns the minute for a date serial number.
  1755. =MINUTE(TIMEVALUE("11:35:20")) -> 35
  1756. =MINUTE(NOW) : This formula will return the current number of minutes past the hour.
  1757. @HMSFORMAT
  1758. tThis constant is used to specify date hours-minutes-seconds format.
  1759. @FORMAT(9876.54321, @HMSFORMAT)  -> 1:02:13 PM
  1760. OComputes the present value of an investment with a given interest rate, number of periods, and periodic payment. If a future value is not given, it is assumed to be 0. If type is not zero, payments are assumed to start in the next period.
  1761. What is the present value of the retirement annuity which promises to pay $30,000 every year for the next 20 years, given an interest rate of 12%?
  1762.     =PV(12%,20,-30000) -> $224,083.31
  1763. What is the present value of the investment which promises to pay $225,000 at the end of 20 years, given an interest rate of 12%?
  1764.     =PV(12%,20,,-225000) -> $23,325.02
  1765. VLOOKUP
  1766. Looks up code in the vertical table. Returns the cell offset cells from the left side of the first match.
  1767. If the first column contains only strings and code is a number, it returns the value from the last row.  If code is also a string, but doesn't match any of the table entries, !ERR is returned.
  1768.      A    B
  1769. 1    A    5.0
  1770. 2    B    4.0
  1771. 3    C    3.0
  1772. 4    D    2.0
  1773. 5    F      0
  1774. =VLOOKUP("A",A1:B5,1) -> 5.0
  1775. =VLOOKUP("D",A1:B5,1) -> 2.0
  1776. =VLOOKUP("Incomplete",A1:B5,1) -> !ERR
  1777. =VLOOKUP(3.0,A1:B5,1) -> 0
  1778. REPEAT
  1779. Returns string repeated times times.
  1780. =REPEAT("X",10) -> XXXXXXXXXX
  1781. =REPT("over and ",4) -> over and over and over and over and
  1782. SECOND
  1783. Returns the seconds of a date serial number.
  1784. =SECOND(TIMEVALUE("10:31:19")) -> 19
  1785. =SECOND(0.26903) -> 24 : This formula returns the seconds for the date-value for 06:27:24 AM.
  1786. SEvaluates exp. If it is a true or non-zero value, the result is value1. If it is false, zero, or a string, optional value2 is the result; otherwise, a blank is the result.
  1787. @IF(5>10,"Something is wrong!","Everything is normal.") 
  1788. -> Everything is normal.
  1789. A1: 3400
  1790. A2: 4000
  1791. A3: 5000
  1792. @IF(@SUM(A1:A3)>=12400,"Full Capacity") = Full Capacity
  1793. CHOOSE
  1794. Chooses the num item from the list.
  1795. =CHOOSE(2,"first","second","third","fourth") -> third
  1796. =CHOOSE(MOD(INT(NOW),7),"Thu","Fri","Sat",Sun","Mon","Tue","Wed") : This function returns the current day using NOW to provide the current date.
  1797. Returns the natural logarithm (log base e) of num.
  1798. =LN(27) -> 3.2958
  1799. B8: 1024
  1800. =LN(B8)/LN(2) -> 10  :  This formula returns the base 2 log of cell B8.
  1801. ISTEXT
  1802. Returns 1 is exp results in a string. Returns 0 otherwise.
  1803. =ISTEXT(VALUE("340")) -> 0
  1804. =ISTEXT(LEFT("Goodbye!",4)) -> 1
  1805. =ISTEXT("Some text") -> 1
  1806. Returns the Future Value of a stream of payments over pers periods at rate interest rate. If present value pv is not specified, it is assumed to be 0. Type designates when the payments start.
  1807. If $2,000 were deposited every year into an account earning 9% annual interest, how much would the account be worth in 20 years?
  1808.        =FV(9%,20,-2000) -> $102,320.24
  1809. If a  $50,000 were deposited instead and accrued 9% interest from the start of the year, what would the account be worth in 20 years?
  1810.        =FV(9%,20,,-50000,1) -> $ 280,220.54
  1811. ISEMPTY
  1812. REvaluates exp. If it is a true or non-zero value, the result is value1. If it is false, zero, or a string, optional value2 is the result; otherwise, a blank is the result.
  1813. =IF(5>10,"Something is wrong!","Everything is normal.") 
  1814. -> Everything is normal.
  1815. A1: 3400
  1816. A2: 4000
  1817. A3: 5000
  1818. =IF(SUM(A1:A3)>=12400,"Full Capacity") = Full Capacity
  1819.     @USERNAME
  1820. If exp is a number, @N() returns exp, otherwise @N() returns 0. @N() is guaranteed to return a number and is used in functions that require numbers as parameters.
  1821. @N(@STRING(300,0)) -> 0
  1822. @N(34) -> 34
  1823. @RIGHT
  1824. Returns a string containing the num characters from the right side of str.
  1825. @RIGHT("The last ten characters",10) -> characters
  1826. @RIGHT("Ida M. Brown",5) -> Brown
  1827. @SECOND
  1828. Returns the seconds of a date serial number.
  1829. @SECOND(@TIMEVALUE("10:31:19")) -> 19
  1830. @SECOND(0.26903) -> 24 : This formula returns the seconds for the date-value for 06:27:24 AM.
  1831. WORKDAY
  1832. Returns the date serial number days working days from the date serial number.  Working days are all days other than Saturday, Sunday, and the optional holidays listed.
  1833. =WORKDAY(NOW,10) : This returns the date serial number 10 working days from now.
  1834. @CHOOSE
  1835. Chooses the item offset from the first item on the list.
  1836. @CHOOSE(2,"first","second","third","fourth") -> third
  1837. @CHOOSE(@MOD(@INT(@NOW),7),"Thu","Fri","Sat",Sun","Mon","Tue","Wed") : This function returns the current day using @NOW to provide the current date.
  1838. @CLEAN
  1839. RADTODEG
  1840. fConverts num (in radians) to degrees.  This complements the DEGTORAD() function.
  1841. =RADTODEG(PI) -> 180
  1842. HLOOKUP
  1843. )Looks up code in the horizontal table. Returns the cell offset cells from the top of the first match. 
  1844. If the first row contains numbers and code is less than the first value in the lookup row, !ERR is returned.  If code is greater than the first value but no exact match is found, it returns the value from the last column.
  1845. If the first row contains only strings and no exact match is found, it returns !ERR.
  1846.      A    B    C
  1847. 1     1    2    3
  1848. 2  $200  $40 $500
  1849. =HLOOKUP(2,A1:C2,1) -> $400
  1850. =HLOOKUP(0.5,A1:C2,1) -> !ERR
  1851. =HLOOKUP(5,A1:C2,1) -> $500
  1852. @SIGNAL
  1853. FIf the condition is true, sends range of cells to the named Mach port.
  1854. MONYEARFORMAT
  1855. gThis constant is used to specify date month-year format.
  1856. =FORMAT(9876.54321, MONYEARFORMAT) -> Jan-97
  1857. Evaluates string as a cell address and returns that address.
  1858. A3: Cheers
  1859. B3: A3
  1860. @@(B3) -> Cheers
  1861. A1: 10
  1862. A2: 20
  1863. A3: 30
  1864. B1: A1:A3
  1865. @SUM(@@(B1)) -> 60
  1866. ISERR
  1867. Returns 1 if exp returns an error other than @NA. Returns 0 otherwise.
  1868. =ISERR(ERRORCONST) -> 1 (true)
  1869. =ISERR(@VALUE("ABCD") -> 1 (true)  :  This formula tried to convert "ABCD" to a value using @VALUE().  This returns !ERR, which causes ISERR() to returns 1.
  1870.     DATEVALUE
  1871. Converts a date string to a date serial number. If the value is a number, just returns the number.
  1872. =DATEVALUE("02/04/92") = 8069
  1873. A3: 'Jul-94
  1874. =DATEVALUE(A3) = 8947 : This is the date number for 
  1875. 1-Jul-94
  1876. exponentiation
  1877. equal to or greater than
  1878. @SQRT
  1879. Returns the square root on the number.
  1880. @SQRT(34) -> 5.8310
  1881. @SQRT(@LOG(200)) -> 1.5169
  1882. @SQRT(@VAR(200,500,100)) -> 170  :  This formula computes the standard deviation of the values given in the variance function.
  1883.     BLUECOLOR
  1884. VA constant referring to BLUE for use in functions that change color (e.g. SETCOLOR())
  1885.     @DEGTORAD
  1886. lConverts num (in degrees) to radians.  This complements the @RADTODEG() function.
  1887. @DEGTORAD(180) -> 3.14159
  1888. equal to or less than
  1889. Removes leading and trailing spaces from string. It also converts multiple consecutive spaces in string to single spaces.
  1890. A3:  Account #        3040302     40303
  1891. =TRIM(A3) -> Account # 3040302 40303
  1892. =TRIM("    Anything    at    all.") = Anything at all.
  1893. link worksheets
  1894. GENERALFORMAT
  1895. aThis constant is used to specify the general format.
  1896. =FORMAT(238.093, GENERALFORMAT) -> 238.093
  1897. @LEFT
  1898. Returns a string containing the first num characters from the left of str.
  1899. @LEFT("The first twelve characters",12) -> The first tw
  1900. @LEFT("ABCDEFG",4) -> ABCD
  1901. If exp is a string, returns exp; otherwise it returns a zero length string. This function is used to guarantee that an expression is a string.
  1902. T(343) -> "" (blank string)
  1903. A1: 2000
  1904. A2: Orders
  1905. T(A1)&T(A2) = Orders
  1906. @SETBKGCOLOR
  1907. %Sets the background color of the current cell and returns value. Red, Green, and Blue are numbers between 0 and 1 that set the percentage of red, green, and blue that will be mixed together to create the color. White is all ones and black is all zeros. If any of the color components are out of bounds or result in errors, the color is not changed.
  1908. @SETBKGCOLOR(A1,@IF(A1 > 50 #AND# A1 < 100,1,0),0,0) : This formula sets the background color to red if the number is greater than 50 and less than 100, otherwise sets the background color to black.
  1909. @YELLOWCOLOR
  1910. YA constant referring to YELLOW for use in functions that change color (e.g. @SETCOLOR())
  1911. ISNUMBER
  1912. -Returns 1 if exp returns a numeric result. Returns 0 otherwise.
  1913. =ISNUMBER(FIXED(300,0)) -> 0  :  This formula converts the number "300" to a string using FIXED().  It then uses ISNUMBER() to test if that result is a value and returns 0 (false).
  1914. =ISNUMBER(34) -> 1
  1915. A3: +394 - 100
  1916. =ISNUMBER(A3) -> 1
  1917.     DIDCHANGE
  1918. If exp is a number, N() returns exp, otherwise N() returns 0. N() is guaranteed to return a number and is used in functions that require numbers as parameters.
  1919. N(STRING(300,0)) = 0
  1920. N(34) = 34
  1921. <XOR>
  1922. Returns the number of columns in a range.
  1923. =COLS(A1:H20) -> 8
  1924. If RANGE1 is the name assigned to the range B1:CC200, =COLS(RANGE1) -> 80
  1925. @RAND
  1926. EReturns a random number between 0 and 1,including 0 and excluding 1.
  1927. @ISNA
  1928. Returns 1 if exp returns an @NA error. Returns 0 otherwise.
  1929. @ISNA(@NA) -> 1 (true)
  1930. A1: 34
  1931. A2: 49
  1932. A3: @NA
  1933. @ISNA(@SUM(A1:A3)) -> 1 : This formula returns 1 (true) because cell A3 contains @NA, which causes @SUM(A1:A3) to evaluate to @NA also.
  1934. @DAVG
  1935. Takes the average of numeric records that match criteria. Strings have a value of zero.
  1936. This is a sample database:
  1937.        A      B     C       D
  1938. 1    NAME   GRADE  GPA    GRADE
  1939. 2    Joe    B       3.2   B
  1940. 3    Sue    A       4.7
  1941. 4    Robert C       2.7
  1942. 5    Steve  A       4.5
  1943. 6    Ann    B       4.2
  1944. The database range is A1:C6.  The criteria range is D1:D2.
  1945. To calculate the average GPA of everyone who earned a B use this formula:
  1946. @DAVG(A1:C6,2,D1:D2) -> 3.7
  1947. @FIND
  1948. ^Returns the location of sub-str in str. It starts searching for sub-str offset characters from the left of str. Returns !ERR if the string is not found.
  1949. @FIND("hampton","Northampton",1) -> 5
  1950. @FIND("hampton","Northampton",6) -> !ERR (because it starts searching at the 5th character)
  1951. A1: "The third word in this sentence."
  1952. @FIND("word",A1,1) -> 10
  1953. @DAVE
  1954. RANDOM
  1955. greater than
  1956.     equal to
  1957. less than
  1958. @ISFORMULA
  1959. BLACKCOLOR
  1960. WA constant referring to BLACK for use in functions that change color (e.g. SETCOLOR())
  1961. ISERROR
  1962. Returns 1 if exp returns an error other than @NA. Returns 0 otherwise.
  1963. ISERROR(VALUE(``ABCD'') = 1 (true)  :  This formula tried to convert ``ABCD'' to a value using VALUE().  This returns !ERR, which causes ISERROR() to returns 1.
  1964. ISERROR(@ERR) = 1 (true)
  1965. @MONTH
  1966. Returns the month for a date serial number.
  1967. @CHOOSE(@MONTH(@NOW)-1,"Jan","Feb","Mar","Apr","May",
  1968. "Jun","Jul","Aug","Sep","Oct","Nov","Dec")  :  This formula will display the current month.
  1969. @MONTH(@DATEVALUE("12/24/92")) -> 12
  1970. SIGNAL
  1971. HIf the condition is true, sends range of cells to the named Mach port. 
  1972. DOLLAR
  1973. :Converts a number to a dollar format string.
  1974. B3:  5251.769585987
  1975. =DOLLAR(B3,6) = $5251.769586
  1976. =DOLLAR(3/43,2)&" is now  a string" -> 0.07 is now a string  :  This formula evaluates 3/43, then converts it to a dollar string with 2 decimal places of precision and concatenates it with the text " is now a string".
  1977.     division
  1978. ERRORCONST
  1979. subtraction
  1980.     addition
  1981.     HMSFORMAT
  1982. rThis constant is used to specify date hours-minutes-seconds format.
  1983. =FORMAT(9876.54321, HMSFORMAT) -> 1:02:13 PM
  1984. multiplication
  1985.     @GETINPUT
  1986. string concatenation
  1987. LOWER
  1988. ZConverts all the characters in str to lower case.
  1989. LOWER(``Bill Johnson'') = bill johnson
  1990.     @RADTODEG
  1991. hConverts num (in radians) to degrees.  This complements the @DEGTORAD() function.
  1992. @RADTODEG(@PI) -> 180
  1993. DSTDEV
  1994. jReturns the standard deviation of the numeric records that match the criteria.
  1995. This is a sample database:
  1996.       A        B        C        D
  1997. 1   STATE   REGION   AVG RF   REGION
  1998. 2   AL      South       3.7   West
  1999. 3   CA      West        2.1
  2000. 4   NJ      East        5.2
  2001. 5   FL      South       4.9
  2002. 6   LA      South       6.8
  2003. 7   TX      West        5.0
  2004. 8   MA      North       7.6
  2005. 9   AZ      West        2.2
  2006. 10  NV      West        2.4
  2007. The database range is A1:C10.  The criteria range is D1:D2.
  2008. To find the standard deviation of rainfall  in the Western region use this formula:
  2009. =DSTDEV(A1:C10,2,D1:D2) -> 1.2029
  2010. @LENGTH
  2011. NEXTYEAR
  2012. Returns the next year of the date. If the date is 2/29 of a leap year, the date returned is 2/28 of the following year.
  2013. =NEXTYEAR(NOW) : This formula returns a date-number one year from the current date.
  2014. =NEXTYEAR(DATE(93,6,20)) -> 8936 : This is the date-number for 20-Jun-94.
  2015. DEGTORAD
  2016. kConverts num (in degrees) to radians.  This complements the RADTODEG() function.
  2017. =DEGTORAD(180) -> 3.14159
  2018. @WEEKDAY
  2019. Returns the day of the week for a date serial number, 0 - Sunday through 6 - Saturday.
  2020. @WEEKDAY(@NOW-5) : This returns the day of the week 5 days prior to today.
  2021. A7: "6/20/82"
  2022. @WEEKDAY(@DATEVALUE(A7)) -> 0 : Returns the day of the week for 20-Jun-82.
  2023. @LTGRAYCOLOR
  2024. ]A constant referring to Light GRAY for use in functions that change color (e.g. @SETCOLOR())
  2025. @YEAR
  2026. Returns the year for a date serial number.
  2027. @YEAR(@NOW-1000) : This returns the year of the date 1,000 days prior to the current date.
  2028. A7: "6/20/82"
  2029. @YEAR(@DATEVALUE(A7)) -> 82 : This formula extract the year from the date-string "6/20/82".
  2030. /Returns the nth root of num.
  2031. =ROOT(81,4) -> 3
  2032. DSTDDEV
  2033.     HISTOGRAM
  2034. *Groups the values in range into #-of-divisions divisions, counts the number of items in each division. The formula should appear in #-of-divisions cells, starting at anchor.  It returns the number of items in the division that is offset from the anchor point.  Min and max are optional parameters that set the minimum and maximun values of the histogram range, so that the distribution will only be calculated for values between min and max.
  2035.      A     B
  2036. 1  Name   GPA
  2037. 2  Joe    2.6
  2038. 3  Sue    3.7
  2039. 4  Robert 3.2
  2040. 5  Steve  3.0
  2041. 6  Ann    3.8
  2042. 7  John   3.5
  2043. 8  Mary   2.9
  2044. 9  Chris  3.5
  2045. To divide the students into 5 divisions by GPA and determine how many fall into each division:
  2046. A10: =HISTOGRAM($B$2:$B$9,5,$A$10) -> 1
  2047. B10: =SAME($A$10) -> 2
  2048. C10: =SAME($A$10) -> 1
  2049. D10: =SAME($A$10) -> 2
  2050. E10: =SAME($A$10) -> 2
  2051. RANGE
  2052. Returns the address for the range specified by the upper row, left column, lower row, right  column..  RANGE(0,0,1,1) is the range a1:b2.
  2053. Adds all the numbers or sums the numbers in the range. You can specify as many numbers or ranges as you want.
  2054. =SUM(300,400,2300,100) -> 3100
  2055. A1:  Blue
  2056. A2:  300
  2057. A4:  900
  2058. B1:  1200
  2059. =SUM(A1:A4,B1) -> 2400
  2060. @TIME
  2061. Returns a date serial number for a given time.
  2062. @TIME(11,30,00) -> 0.479167 : This is the date-number for 11:30 AM.
  2063. @NOW+@TIME(8,0,0) : This formula returns a date-number for the time 8 hours from now.
  2064. <Returns the Net Present Value of an investment with the interest of rate. Counts string values in range as zero.
  2065. An apartment building is being offered for sale for $400,000. Expected rental incomes for years 1-5 are $79,000, $85,000, $85,000, $103,000 and $120,000 and the interest rate is expected to stay close to 7%. Is this a worthwhile investment?
  2066.            A
  2067. 1      -400000
  2068. 2        79000
  2069. 3        85000
  2070. 4        85000
  2071. 5       103000
  2072. 6       120000
  2073. To figure out the net present value of the cash in-flows:
  2074.     @NPV(7%,A2:A6) -> $381,595
  2075. To figure out the value of the project:
  2076.      Project Value = Initial Cost + NPV
  2077.           +A1+@NPV(7%,A2:A6) -> -18,404
  2078. No, this project is not worthwhile.    
  2079. Note: This differs from NPV(rate,pmt1[,pmt2[,...]]). @NPV() treats string values as zero, but NPV() ignores string values.
  2080. Returns the payment to pay off a loan of prin with interest int over pers payments.
  2081. What would be the monthly payment on an $40,000 home improvement loan, to be repaid in 5 years at a fixed rate of 9%?
  2082. @PMT(40000,9%/12,5*12) -> $830.33 per month.
  2083. Returns the maximum numeric value of the records in database that match criteria.
  2084. This is a sample database:
  2085.        A      B     C        D
  2086. 1    NAME   SALES  REGION  REGION
  2087. 2    Joe     3000  East    East
  2088. 3    Sue     4500  North
  2089. 4    Robert  2800  East
  2090. 5    Steve   3700  South
  2091. 6    Ann     2400  West
  2092. The database range is A1:C6.  The criteria range is D1:D2.
  2093. To find the largest sales figure in the Eastern region use this formula:
  2094. =DMAX(A1:C6,1,D1:D2) = 3000
  2095. Returns the remainder of num divided by div
  2096. @MOD(12,5) -> 2
  2097. @NOW-@MOD(@NOW,7)+5 :  This function returns the date-number for Monday of the current week.
  2098. Returns the largest number in the range or list. Strings are considered to be zero.
  2099. @MAX(4.5,3.2,2.5,2.5,6.2) = 6.2
  2100. @MAX(4,4,4) = 4
  2101.          A     B     C
  2102. 1        300         400
  2103. 2          0         400
  2104. 3        200         100
  2105. 4        300        5000
  2106. 5        700
  2107. 6        600
  2108. 7        300
  2109. 8        500
  2110. @MAX(A1:A8,C1:C8) -> 5000
  2111. Note: This function differs from MAX(num|range[,...]). @MAX() treats string values as zero, but MAX() ignores string values.
  2112. FALSE
  2113. @DMYFORMAT
  2114. oThis constant is used to specify the date day-month-year format.
  2115. @FORMAT(9876.54321, @DMYFORMAT) -> 15-Jan-97
  2116. ScrollingText
  2117.     Funtcions
  2118. Desciptions
  2119. Panel
  2120. File's Owner
  2121. Button1
  2122. [26@]
  2123. IBOutletConnector
  2124. IBConnector
  2125. IBControlConnector
  2126. changeList:
  2127. selectedItem:
  2128. delegate
  2129. pasteItem:
  2130. window
  2131. nameStrings
  2132. aboutStrings
  2133. IBHelpConnector
  2134. $MesaMenus/Main/Edit/FormBuilder.rtfd
  2135. Formula Builder command
  2136.